Copy link to clipboard
Copied
I'm trying to store and retreive cam-captured bitmapdata to the local app-space, but after a whole day of searching and trying I can't find any working example.
It's no problem capturing cam-bitmapdata, but how to store (and retreive).
Thanks!
Copy link to clipboard
Copied
If its just a problem of saving the bitmapdata, follow along:
http://actionsnippet.com/?p=1093
Use http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/filesystem/File.html#applic... to resolve to the correct location.
Copy link to clipboard
Copied
I tried the code you suggested, but it took about 8 seconds to write a single image file of 640x640px ... and after saving it, I didn't manage do load it, because I was not not able to track it's destination.
In the end I used this example to read and write a ByteArray en convert it to/from bitmapData, which is pretty speedy!
Thanks for thinking with me.