0

I have implemented upload/download functionality for my Flex 4 application. I want to view the uploaded document in the browser (primarily in IE 7+). I have the FileReference object which saves/downloads the attachment on the machine. I have stored the document in the Oracle Database as a BLOB and on Flex side as ByteArray object.

Is there any way I can view the document in browser without downloading the file?

hoshang.varshney
  • 1,110
  • 3
  • 15
  • 26
  • No. If you don't download the file, it's on the server, hence you can't view it. Not with Flex, not with any other client-side technology. For lack of better words: you're trying to bend the laws of physics. – RIAstar Dec 26 '13 at 09:40
  • Client-side I have ByteArray object. Can't I use that to display the file in browser? – hoshang.varshney Dec 26 '13 at 12:36
  • Inside the Flex app, yes (see http://stackoverflow.com/questions/11541730/bytearray-to-bitmapdata-as3); but not natively in the browser. – RIAstar Dec 26 '13 at 13:54

0 Answers0