Adarsh V C
Adarsh V C

Reputation: 2314

How to keep the file size small in PhoneGap apps? what compression should be used to store the files in filesystem?

We are developing a PhoneGap application (iOS & Android). That needs to store some data in mobile database(SQLite) and some PDF/JPG files File system to make application working in offline mode.

We will download this data once the application has been installed. My question is, Which format we should use to store the PDF/JPG files in filesystem ? It is in Zip format? Any other compression ? Or No compression ?

Which one is recommended?

Upvotes: 0

Views: 534

Answers (1)

Illegal Argument
Illegal Argument

Reputation: 10348

Do not use any compression, save the files as they are in file system. Make sure you have appropriate file size ready before download(for eg: 100kb png images is enough for mobile). Make sure you keep your data safe here is a good link how to here

Upvotes: 1

Related Questions