Flash Platform 17 May 2006 04:10 am
Bitmapdata / Image Compression Techniques Solutions for Flash 8
(Visited 6349 times)Maybe you already know that we can save bitmap data into image file in flash 8 by using bitmapdata class. Mario Klingemann also did is with his BitmapExporter class.
The problem when you try to do save / sent bitmap data from flash to server is the compression. If you try to sent large data to server oftenly (each minute) then your server will do complex job to parsing the data into image and some times your flash will look or may be hang because of it. The solutions for this thing is compression rules!
Talking about the compression Koen De Weggheleire has a great idea about it. He explained to us about how we can compress the image data as well as RLE and LZW compression. With this method you even can have compression ratio 1.56. wow!!
[ via Peter Elst ]
4 Responses to “Bitmapdata / Image Compression Techniques Solutions for Flash 8”
Leave a Reply
You must be logged in to post a comment.


on 06 Sep 2006 at 6:14 am 1.Kurt Granroth said …
“The problem when you try to do save / sent bitmap data from flash to server is the compression“ i quite agree with this.
you give the solution about this problem - compression rules, thanks for your links!
on 18 Dec 2006 at 2:48 pm 2.KinGKriS said …
Hi…is it possible to compress the image file dynamically using flash on client side before uploading the file to the server….
Thanks
Kris
on 20 Dec 2006 at 1:59 pm 3.janumedia said …
Hi Kris.
I’m sorry it can’t if you mean by using fileReference to select an image and try to compress it before the uploading begin.
In fileReference class there is no option to get the binary data of selected file.
on 08 Nov 2007 at 7:15 pm 4.Seventhapex said …
You can take a snapshot of an image on the clientside using the movieClipLoder class and Bitmap.draw() method. this should give you the data you need to compress.