× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Sure thing, I already have capabilities to create PDF documents from spool files, or without them. I also have capabilities to send HTML Emails with existing <img>.

My immediate need was to send an image over a MMS gateway, I already got it working, however, I'm still interested on a working example of QIMGCVTI/QimgCvtImg.

Jorge
jmerinoh

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Bradley Stone
Sent: Monday, December 17, 2012 7:15 AM
To: RPG programming on the IBM i / System i
Subject: Re: Spool to Image, QIMGCVTI or QimgCvtImg Example.

Can I ask why you want to convert to an image before emailing?

Are you sending the email as an HTML email? If so, does that mean you'll be embedding the image in your email, or referencing it in the HTML with am IMG tag?

There are already many products out there that may help that convert to PDF and email the resulting file.

Brad
www.bvstools.com


On Sun, Dec 16, 2012 at 3:57 PM, Jorge Merino <jorge@xxxxxxxxx> wrote:

I found that I can Copy a spool file to a GIF image using a *WSCST
object with V7R1 very easily.

CPYSPLF FILE(QSYSPRT) TOFILE(*TOSTMF) SPLNBR(*LAST)
TOSTMF('/home/jmerinoh/mygif.gif') WSCST(QWPGIF).

It also can be used to create TIFF images with QWPTIFFPB and QWPTIFFG4
*WSCST objects as well.

I'm still would be interested on an example to create an image
QIMGCVTI or QimgCvtImg APIs if possible, so I'm looking to other Image
Types such BMP or JPG.

Thanks all.
Jorge



-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Jorge Merino
Sent: Sunday, December 16, 2012 2:25 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: Spool to Image, QIMGCVTI or QimgCvtImg Example.

Hi guys!

I have a little project to generate text images and attach them into
emails. So my options are pretty narrowed down to:

a) Have ILE RPG to write an image stream directly into IFS.

b) Write an Spool File and convert it to an image.

So, I was looking into the possibilities of QIMGCVTI/QimgCvtImg API,
does somebody have an example to share? Or any suggestion?

Thank you all.
Jorge
--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing
list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/rpg400-l.

--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing
list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/rpg400-l.


--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.