Jorge,
I am curious about your example CPYSPLF command.
Attempting same on my system, however, I am not able
to specify *TOSTMF as the TOFILE:
Value '*TOSTMF ' for parameter TOFILE not a valid name.
In addition, I do not see the TOSTMF or WSCST parameters ???
P.S. System is V7R1M0
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Jorge Merino
Sent: Sunday, December 16, 2012 2:58 PM
To: RPG programming on the IBM i / System i
Subject: RE: Spool to Image, QIMGCVTI or QimgCvtImg Example.
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.
As an Amazon Associate we earn from qualifying purchases.