The data is created on the server through PHP App which works with SQLite.
I have database which stores image name / path in the tbale (say MyImages)
So the column that holds an image is: ImagePath
I have a subfolder ie. /home_html/app_folder/image_folder/... where all the images are stored in subsequent folders: /RecID05/... then /RecID06/....
There is a fixed path so the user uploads the image and enters the name into the database.
the App (in necessary creates subfolder like /RecID06/ and saves the file in that folder
I need to download the images along the the SQLite database to the device and use same approach to display the record with the ImageFilename and when the user clicks a record display an image.
There will be no editing on the device, however freequent updates will take place. I assume I will let the user download updated SQLite file along with other files (there will be other files which will be updated frequently. i.e. HTML files, MP3 files etc.) so I suspect the same schematics cold be applied.
Since there will be lots of files, the images will be stored in folders and subfolders. Each folder is named by the RecordID so it is easy to reference an image.
i.e.
/RecID02/imge01.jpg , image02.jpg
/RecID03/image45.jpg , image54.jpg , image43.jpg
QUESTION:
What is the best solution to do this ?
Would it make any difference if I store the images in BLOB instead ?
Obviously I can have all images compressed to the ZIP file (on the server) then downloaded, but perhaps better solution exists. At the moment to make it simple I will download the whole database along with the all images folder. Later I might improve the performance by downloading only new stuff.
would appreciate any suggestions, or examples
Thanks - Arthur
I have database which stores image name / path in the tbale (say MyImages)
So the column that holds an image is: ImagePath
I have a subfolder ie. /home_html/app_folder/image_folder/... where all the images are stored in subsequent folders: /RecID05/... then /RecID06/....
There is a fixed path so the user uploads the image and enters the name into the database.
the App (in necessary creates subfolder like /RecID06/ and saves the file in that folder
I need to download the images along the the SQLite database to the device and use same approach to display the record with the ImageFilename and when the user clicks a record display an image.
There will be no editing on the device, however freequent updates will take place. I assume I will let the user download updated SQLite file along with other files (there will be other files which will be updated frequently. i.e. HTML files, MP3 files etc.) so I suspect the same schematics cold be applied.
Since there will be lots of files, the images will be stored in folders and subfolders. Each folder is named by the RecordID so it is easy to reference an image.
i.e.
/RecID02/imge01.jpg , image02.jpg
/RecID03/image45.jpg , image54.jpg , image43.jpg
QUESTION:
What is the best solution to do this ?
Would it make any difference if I store the images in BLOB instead ?
Obviously I can have all images compressed to the ZIP file (on the server) then downloaded, but perhaps better solution exists. At the moment to make it simple I will download the whole database along with the all images folder. Later I might improve the performance by downloading only new stuff.
would appreciate any suggestions, or examples
Thanks - Arthur
Last edited: