This content has been marked as final. Show 6 replies
File.upload (inherited from FileReference)). Upload it to a PHP script that puts it to a portected folder. Access if from a PHP script, as getFile.php?name=filename.jpg and make that script require login.
I'm doing this very thing right now.
If you are trying to secure the files after they have been downloaded to the client, then you will have to encrypt them in some way. AIR doesn't currently provide a built-in API for encryption.
Can you put image file ByteArrays in EncryptedLocalStore?
While you can put images into the Encypted local store, the documentation warns that ELS performance slows when the stored data exceeds 10MB. So it may or may not work for this use case.
Thanks for the info.
BTW, where is the ELS stores? The documentation says it's in the application folder, under AIR/ELS/... but I can't find it there. Is the application folder not the one in Documents and Settings/User/Application Data/appid/ ?
Thanks for the ideas and information guys.
I am still confused on how I would have my application authorize the download instead of making a user input a username and password.
I am wanting to do an auto update of my assets for my application without doing an application update. I have been able to get it to download a file to a specified location in the background using FileStream. I just haven't been able to figure out how to make the external files "secure".
Encryption is not need at this point but that's a great idea that I'm sure I'll end up using.