tags:

views:

42

answers:

1

Hello All,

How to Store Large size Images into iPhone Application? Images are taken from UIImagePickerController but saving into Database and retrieving from Database crash the application.

A: 

If your images are large enough, then you should NOT store them inside Sqlite. Instead, you should simply store in the database the pathname where you actually save the image in the filesystem (say for example the Documents directory of your application).

Now, it is up to you to decide what is large enough. To me, binary data greater than 1 megabyte is large enough to decide not to store the data inside the database. The threshold is dictaed by practical consideration related to the speed of both Sqlite and the filesystem.

unforgiven