[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Looking for best option
Finally after getting the responses I was looking for (With Magne's help) I
am now looking for suggestions on how to best code the application.
Here is the pseudo code:
1) Make a request for an Image ID based upon a value that I have stored in a
database file.
2) Parse the response and extract out the Image ID.
3) Make a request for the image data for the parsed Image ID
4) Save just the <BASE64DATA> into a stream file.
5) Use the BASE64R4 api to convert the stream file which will leave me with
a tiff file
6) Display the tiff file to the browser (customer's browser's have a plugin
to view tiff image)
When I request the image ID (3) I get returned something to the effect of:
<IMAGE>
<ID>346307898</ID>
<IMAGESIZE>8908</IMAGESIZE>
<BASE64DATA>...</BASE64DATA>
</IMAGE>
>From previous email postings I understand that base64 data should not be
converted to EBCDIC which would mean I should use one of the "getRaw"
procedures so that it doesn't get translated. The problem is that I have to
find out where the start and end of the BASE64DATA is. I could let the
api's translate the response into EBCDIC and save the BASE64DATA data into a
stream file and then use http_xlate to convert it back to ASCII and then run
base64_decode against the converted file but that seems rather backwards.
Any suggestions?
Thanks,
Bruce
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------