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

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

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

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 07-22-2008, 04:14 AM   #1 (permalink)
zig to the zag
 
Join Date: Jul 2008
Posts: 45
zig_zag_love is on a distinguished road
Default Best way to save image data

Hello, I'd like some opinions on an issue I'm facing right now during development. Here's how it goes - user selects an image from the camera/albums/camera roll and it is archived with a bunch of other user-inputted data. Now, what would you say is the best way to handle this? The way I'm doing it now is to save the .jpeg representation to the application's directory and then archiving the path to the image in a database. However, this seems sort of redundant, considering that the image is already on the ipod/iphone in some representation - is there any way to archive a persistent representation of an UIImage object or access the file it was generated from at a later date?

The native "contacts" application does this, but I suspect that it's just apple using the actual paths to the images behind the scenes. I'd like to keep this as SDK-friendly as possible I think...
zig_zag_love is offline   Reply With Quote
Old 07-22-2008, 06:37 AM   #2 (permalink)
I can't think without pen
 
Join Date: Jul 2008
Location: New York
Posts: 72
aahmed753 is on a distinguished road
Default Your approach is not redundant.

Saving the picture in your own application space is not redundant based on what you are trying to accomplish. For example, if you are relying on the images from iPhone's photo album/camera, then user can delete/move the picture using iPhone's or Mac's iPhoto application. This would break your application image link. That's way Apple's Address book keeps image data in it's own space.
aahmed753 is offline   Reply With Quote
Old 07-23-2008, 01:59 AM   #3 (permalink)
zig to the zag
 
Join Date: Jul 2008
Posts: 45
zig_zag_love is on a distinguished road
Default

Ah, excellent point, thanks for the advice.
zig_zag_love is offline   Reply With Quote
Old 08-19-2010, 07:57 AM   #4 (permalink)
Registered Member
 
Join Date: Aug 2010
Posts: 1
zdali is on a distinguished road
Default

Quote:
Originally Posted by aahmed753 View Post
Saving the picture in your own application space is not redundant based on what you are trying to accomplish. For example, if you are relying on the images from iPhone's photo album/camera, then user can delete/move the picture using iPhone's or Mac's iPhoto application. This would break your application image link. That's way Apple's Address book keeps image data in it's own space.
so whats the best way of saving image in the application space . coz i ve lots of image in my app. thx
zdali is offline   Reply With Quote
Reply

Bookmarks

Tags
persistent data, uiimage

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 308
6 members and 302 guests
givensur, guusleijsten, jbro, mer10, n00b, yomo710
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,649
Threads: 94,113
Posts: 402,880
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Anwerbl
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 09:05 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0