Image capture, resize, ftp upload - performance
Hello fellow coders,
Would appreciate some advice on how best to do the following with the least performance issues.
I have a view where I have 8 custom buttons - each one, when clicked, opens up the camera to take a picture, replace the custom button image with the image from the camera. The user can do this for all the buttons. When he's done, the images may need to be resized, and then uploaded to an ftp server. Then he can go back, pick another item, and do the same again.
I've got the bare bones of this working with the camera image, and ftp upload working. What I'm trying to figure out is what the best approach is to store these images for later upload without hogging up the memory. I understand they will need to be done in a background process.
I thought of writing them to file, and keeping a log of the file names in an array which I can enumerate later and do a batch upload. Alternatively, once the 8 images are captured, do the upload so that there is no large backlog.
Before the images are uploaded, they may need to be resized depending on the user settings. So that is another overhead.
Any insight and advice on how best to approach this would be greatly appreciated.
Thanks.
|