This content has been marked as final. Show 3 replies
If you want to display it with the HTML, have you tried using a data: url. I don't know if it works in AIR, but Webkit does support them. See http://en.wikipedia.org/wiki/Data:_URI_scheme
Otherwise, to get the raw image from a jpeg it's quite simple. I'm not sure about HTML, but it works in Flex. Load it using a Loader object. Then create a BitmapData object and pass the Loader to the draw() method of the BitmapData.
Hmm, interesting idea - though I'd have to base64 (or url) -encode the data. Feels like quite a kludge - but an interesting one ;-)
Loader is probably what I'm looking for - didn't remember that Loader has a loadBytes().
As it turns out, I'd _really_ like to 'apply' the ByteArray jpg to a IMG -tag; positioning it correctly (among other things) within a html app is a pain otherwise - and writing it to file just to get it into the img is, uhm, not much fun either ;-)
I'm guessing this is not possible, so I'm just generally wanting this - chime in if you have the same need :-)