Flash 10 "Astro" FileReference

Was watching the videos for the new flash player beta and this in the Pixelbender demo there is something really interesting.

He takes a script file from his local computer, the player interprets it and saves the image out as a PNG at runtime. After doing some research online i came across this article from flashmagasine.com, as far as i understand this the new functionality can load a file into the player at runtime without going via the server, what this would mean for SWFUpload is that it could take any image format and convert it + downsample it on the client. - say someone uploaded a 5MP tiff image, previously you would have to send all that data to the server before you could do anything, with this feature you could take that data, convert it to a 1024 x 768 jpg, create a png thumbnail on the client and then save the filereference on the server.

This would mean enormous bandwidth savings for any site that does uploads. When we first started the original project at least this was easily the most requested feature that ppl wanted implented.

Anyone up for the challenge? Smiling

gyphie's picture

Very interesting

I've installed the FP 10 beta and found that SWFUpload does not work. We'll be working on this and will probably have another v2 release before Flash Player 10 is released.

It is exciting to get additional access to file data in Flash Player 10. Hopefully we can get this working

acolonna's picture

This is something we've been waiting for a long time...

Since AS3 was launched, along with the ability to play with byteArrays...

Guys you have all that's needed, there are AS3 libraries for JPEG, PNG and encoders for other formats.

Thought encoding images in AS3 is not the fastest thing, I've seen a JPEG encoder with timeouts, which give the renderer time to display and update a progress bar, which makes things much better than just waiting for the thing to move again.

Should you need help in the development, drop me a mail!

Good luck guys!

acolonna's picture

oh and yeah

An idea I had some time ago, was to create a RAW image decoder in Flash (meant for AIR). Now this could be designed to work within a web page, giving it quite some added value.

Figure this:

professional photographers on the run have their own tools and stuff. they aren't looking around for scripted stuff to meet their needs.
but....
imagine, a web service with "emergency tools"...
the last resort for a photographer.. who needs to send his pics for a news paper, he is in Patagonia and there isn't enough bandwidth to send RAW data, he's big camera is down, and the small one can't extract Jpeg data. He's computer is down too...

Maybe I'm just thinking too much about Murphy... Laughing out loud

gyphie's picture

SWFUpload v2.1.0 and Flash 10

SWFUpload currently is not working with the Flash Player 10 beta.

Contributed code (with a license that allows us to incorporate it and distribute it with SWFUpload) would be very welcome and would ensure that these features get into SWFUpload.

If anyone wants to toy with some kind of plugin architecture (I don't know how, maybe importing a movie that will do file conversions) then we could keep the Core SWFUpload streamlined and you'd just include the file conversion plugin you need for whatever image or other file type you're working with.