Image -> AS3 -> BitmapData -> JPG -> PHP -> Server / Hard Drive

How to encode Bitmap Data as a JPG and save it a remote server:

(and/or back down to your hard drive)  

hint:  Unless you want to re-invent the wheel, get AS3 CoreLib actionscript library from google docs  ...

Great articles, really clear / short and helped me breeze through getting this working compared to some other tutorials that came up first.

http://actionscript-blog.imaginationdev.com/5/save-jpg-jpeg-png-bmp-image-action-script-3/

http://designreviver.com/tutorials/actionscript-3-jpeg-encoder-revealed-saving-images-from-flash/

enjoy.

1 comment (Add your own)

1. sean wrote:
Those tutorials are about echoing the file and downloading it back to the client.. Here's a reference for writing a PHP web service for saving to the server...

http://blog.joa-ebert.com/2006/05/01/save-bytearray-to-file-with-php/

Tue, October 27, 2009 @ 7:12 PM

Add a New Comment

Enter the code you see below:
code
 

Comment Guidelines: No HTML is allowed. Off-topic or inappropriate comments will be edited or deleted. Thanks.