Page 1 of 1
DataBases and how to store images on mobile devices(?)
Posted: Sun Mar 31, 2013 3:31 pm
by DevBoyLars
Hi there,
I want to build an App, which takes pictures on mobile devices and save them (not in cam-roll).
Would it be the best way to create a (SQL?) database and save the filenames (with category) inside and save the images in folders or is it possible/better to store the image itself into a database?
Thank you

Re: DataBases and how to store images on mobile devices(?)
Posted: Sun Apr 14, 2013 1:09 pm
by DevBoyLars
No one can help?
Re: DataBases and how to store images on mobile devices(?)
Posted: Sun Apr 14, 2013 2:31 pm
by jmburnod
Hi DevboyLars,
You can store the images in a subfolder of the documents folder of the sandbox of your app
Best regards
Jean-Marc
Re: DataBases and how to store images on mobile devices(?)
Posted: Sun Apr 14, 2013 3:23 pm
by DevBoyLars
Thank you
And would it be better to store the filenames in a SQL-DB or use XML?
Re: DataBases and how to store images on mobile devices(?)
Posted: Sun Apr 14, 2013 3:31 pm
by jmburnod
And would it be better to store the filenames in a SQL-DB or use XML?
Sorry I don't use them.
I use the directory of the images folder to build an index of files which is stored in a simple .txt file
Re: DataBases and how to store images on mobile devices(?)
Posted: Sun Apr 14, 2013 3:36 pm
by DevBoyLars
Could you post an example-code, please?
Re: DataBases and how to store images on mobile devices(?)
Posted: Sun Apr 14, 2013 4:14 pm
by jmburnod
I use the files in this script but you can use detailed files to get more information about each file
Code: Select all
on mouseUp
answer folder "Open:"
if it = empty then exit mouseUp
put the defaultfolder into tODF
put it into sCurFolPict
set the defaultfolder to it
put the files into tFiles
filter tFiles without ".*"
put sCurFolPict & "/" & "myIndex" into tUrl
put tFiles into url("file:" & tUrl)
set the defaultfolder to tODF
end mouseUp