Our Flex web app has PDFs in Memory each in a ByteArray.
We need to
a) convert the ByteArray to a JPG to display as an image
BUT www.imagemagick.org Is the kitchen sink, hard to isolate the SW to map PDF bytes to JPG bytes.
b) save the ByteArray to the same server running our Flex web app
SHOULD be easy, but cannot find directions.
With the PDF written to our server we can easily display the PDF or SWF on an iFrame.
If we can solve a) or b) then I will help other forum members by publishing the rest of our solution.
1 person found this helpful
I agree that option A would be a pretty intensize task to map PDF bytes to bitmap bytes.
For option B, there's a good post here about how you can upload a bytearray by loading the data manually into a FileReference: http://www.pavlasek.sk/devel/?p=10. He even gives some code for a Java servlet that will accept the ByteArray.