I'm trying to decide on the best way to export my desktop application's SQLite database and send it to the server along with binary files such as photos that were also created by the desktop application. Perhaps I'd export the SQLite data to XML and compress it, but the photos wouldn't benefit much from compression--I would just gain the ability to encrypt them by using ZIP of gzip. The server is running Java on Google App Engine and there are request timeouts, so I was thinking of sending all the files in individual requests instead of in one big zip file.
- - - > So my question is, which compression algorithm do you recommend me using from Flex? I see this tutorial here:
Also, on the other end, the virtual file system will support both gzip and zip:
- - - > Also, how do I encrypt the files I'm sending to the server? I found code for encrypting a PDF, but I need it for other file types.
Yes, I think so! I also found this:
However, I need to figure out what's best in my case. My AIR app can run disconnected from the internet and only needs to upload files to a server once in a while. When I do need to upload, should I just be sending unencrypted files via SSL instead?
If you are just looking to secure the file during transmission, then SSL is probably your best bet.