Expand my Community achievements bar.

How to load a jpeg image in to a database from a flex2 app

Avatar

Former Community Member
Hi,



how ouwld I browse the local fie system, select a jpeg image
and then save

it to a database using flex2?

Anybody know of some sample code that I can look at?



Thamls





1 Reply

Avatar

Level 3
Hi Thamis,



Take a look at the flash.net.FileReference class here:
http://livedocs.macromedia.com/flex/2/langref/index.html



This is the built in Flash support for file upload. You'd
handle the upload with a servlet/jsp/etc. server-side component to
save it to disk or as binary data in a database.



Best,

Seth