|
-
Señor Member
I've got BmD to ByteArray, now the other way around?
So in my experiments with FileReference I wanted to create something cool that I had been reading about in an article: a steganographic tool.
Basically it loads an image from the user's hard drive (not using browse(), the user just specifies a URL) and they can input some text into the textbox, and click the done button. The swf then makes some changes to the bitmap to include that text secretly within the bits of the image. Then it encodes the image as a png (class I found on the internet) and brings up a save dialogue.
The next thing I want to do is use the FileReference instance I'm using to load the image file. This returns a ByteArray. Is there any way to get flash to recognize that the ByteArray contains a png and just port it automatically to a BitmapData, or would I have to search for another class that would do this for me (an unsuccessful search so far, so if anyone has seen one could you provide a link please?) instead?
Thanks for any help or info,
Mavrisa
Haikus are easy
But sometimes they don't make sense
Refrigerator
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|