Hi Flex sure can return the data, but because you are working with multiple file types, you're gonna run into some decoding / file saving issues. For example, you can easily decode an image file, but what about other binary files like .doc files etc? You will probably need libraries to take care of that. Plus, when it comes to saving the file(also with pre-upload encoding etc), you will be restricted with regards to Flash player version.
In general, why are you storing it as binary data in the db, any specific reason? What traffic are you talking about, as this might create a lot of db / server-side 'overhead'. Dependent of the use case, taking a different approach might make your life much easier. Maybe you can give us a more detailed use case, as the solution will depend on what the desired behavior should be. What will happen before the upload? How will the download be initiated? How do you want to display the downloaded file? etc etc etc Yuri --- In [email protected], "timgerr" <tgallag...@...> wrote: > > Sorry for not being clear. I want to transfer a file (image or document) to > my back end PHP using flex. I then want PHP to convert the file to binary > and store the data into a database. I think I know how to do that. I then > want to be able to retrieve that data from a query to the back end via flex > and then have the user download the file (in the correct file format). Can > the 2nd part be done with flex, retrieving the file??? > > Thanks, > timgerr > > > --- In [email protected], "Tracy Spratt" <tspratt@> wrote: > > > > Can you be more clear on what you want? "Download" typically means to take > > a physical file from a remote file system and save it in a local filesystem. > > There is no "conversion" involved. > > > > > > > > Perhaps you do not mean "download"? What kinds of file formats are you > > talking about, and what do you want to do with the data in the Flex client? > > > > > > > > Tracy Spratt, > > > > Lariat Services, development services available > > > > _____ >

