On 11-Apr-2012 10:49 , Jorge Merino wrote:

I want to encode a TIF image stored on the IFS and to embed it into
an XML document that will be downloaded on a web browser.

I know that by open() the IFS file, then QDCXLATE(), and
base64_encode() -of course using Scott's tools- do the magic, but has
to be by reading in a loop the buffer returned by open().

However, I want to save some extra programming by avoiding the loop
and convert the full streamed file in one single step (I'm already
using CGIDEV2-LoadStreamFile that returns the streamed file).

I found that I can use 'iconv' API from QTQICONV service program to
do this conversion, does somebody can share an example of parameters
to be used for 'iconv'?.


Perhaps just my ignorance, but where is there a need for dealing with character conversions when the original data is "image"?

Regards, Chuck

This thread ...

Follow-Ups:

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

This mailing list archive is Copyright 1997-2019 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].