×
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.
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.
As an Amazon Associate we earn from qualifying purchases.