Best way to manage probably huge photo library with iPhone SDK

Discussion in 'iOS Programming' started by mamcx, Jan 26, 2009.

  1. mamcx macrumors regular

    Mar 13, 2008
    0 vote down

    I'm developing a app with a list of products. I wanna let the user have 1 picture for each products.

    Now, the problem is what to do next. I think that the best way is that the photos get sync when the user connect to their computer & itunes, and acces them from the app (something like: /photos/catalog/ref1.jpg.

    The other option is put them on my sqlite database, but I worry that that get bigger. I have data + picture, data change a lot but pictures are rarely modified (if much, I expect the user take 2-3 new pictures each time).
  2. CommanderData macrumors regular

    Dec 1, 2007
    You will not be able to sync your photo data to a device through iTunes. Your photos will need to get on the device in one of these ways:

    1) come with the app pre-bundled
    2) downloaded as needed from a web site that you maintain
    3) (perhaps most difficult) implement your own FTP server/Bonjour system in the app that lets a user copy files and pictures from their Mac over to the iPhone via local WiFi. Look at the various briefcase/air-sharing type apps in iTunes for examples.

    None of these options will preclude you from storing the images in a SQLite database. You could also store them in your app's local documents directory if you wanted.

Share This Page