Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 06-29-2009, 11:45 AM   #1 (permalink)
ir001
Registered Member
 
Join Date: May 2009
Posts: 25
Default 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.
ir001 is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 158,558
Threads: 89,129
Posts: 380,269
Top Poster: BrianSlick (7,105)
Welcome to our newest member, thesooty
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 05:29 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.