I’m looking into uploading an XML file and then storing it’s contents in database. It looks like upload method of flash.net.FileReference would do the job however it just gives you an option to upload it to server.
I could upload it to server, read it from that server and then delete that file but I would like to avoid extra work.
Is there a way to just load a file into memory without saving it on some remote location?
If you are trying to have the user select an XML file from their local machine, after your
myFileReference.load(), in yourEvent.COMPLETEhandler function you can usevar myXML:XML = XML(myFileReference.data);to get the data of the file you selected.