sorry ... but i don't know whether this might be possible ... javascript cannot handle this as far as i know ... may be there are activex-controls for IE out there ... but that would be proprietary for IE only. javascript is able to manipulate the dom of a document, you may do a lot of validation-logik or some dhtml-things etc. but it has no file-, stream-reading abilities ...
of course you may set img-sources dynamically ... but the images has to be provided as ready sources ... so you may do something like:
[CODE=javacsript]img_node_ref.sr c = 'new_image_src. jpg';[/CODE]
perhaps you may control plugins that handle streams, but js itself cannot do that ...
I am trying to get image as binary stream from database. I want to handle the same in Java script to display as Graph in my UI.
If you're getting the image from a database, you're using a server-side scripting language. Just use that to create the image on the server-side all ready for use on the client-side.
Comment