I want to store an image in my SQLITE db. I checked out the length of the image’s string with this code:
String res;
int reslen;
Log.i("asd", "doinback");
WebServiceConnecting wbs = new WebServiceConnecting();
res=wbs.SoapAction(new String[] {"FileName"}, new String[] {"1.jpg"}); //gets the image in string format
reslen=res.length();
res=String.valueOf(reslen);
Log.i("string res=",res );
I got the value of reslen as ~300,000. so what size should i give for my varchar column in SQLite db?
AFAIK sqlite uses charset conversation for TEXT columns, consider using BLOB type to store image.