With Flash 8, is there a way to turn a bitmapped movieclip into a PNG or
compress it somehow to send it back to the server as a bitmap at runtime? I
imagine you could send it as raw bitmap data, but it would be quite large.

This has been discussed a while ago, but briefly --

Yes, you have to send the raw bitmap data. You could send that uncompressed data to a form (too large), RLE compressed (simple and efficient, easy to code; depending on how your image is, it wouldn't compress much) or LZW-compressed (a bit more complex, you'll need to find some LZW extension for actionscript; could be slow; similar to the compression used by png, gif, zip, etc). Then some server-side script would get that data and properly assemble the image using whichever format and save it.

Best solutions are RLE or LZW although it depends on how complex your image will be.

Slightly off-topic, Tinic Uro has published on his blog a technique to encode the image data into some LZW data using built-in player functionality; then with the addition of some simple headers it is turned into a PNG image and sent to the server via file upload. That's for AS3/Flash8.5+ though.


- Zeh
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to