[android-developers] Re: Storing images as blob in sqlite

2009-03-17 Thread My3
And-Rider, Even I am facing same problem,am trying to load the image using webview which is throwing this error: xxx jpeg error 53 Not a JPEG file: starts with 0x%02x 0x %02x Can you please let me know how did you solve this. On Feb 27, 11:59 pm, And-Rider rahulregunat...@gmail.com

[android-developers] Re: Storing images as blob in sqlite

2009-02-27 Thread Nathan
It's not really the recommended way to store images but the following code has worked for me. db.execSQL(UPDATE + TABLE_NAME + SET image = ? WHERE id = ?, new Object[] { image_bytes, id } ); --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: Storing images as blob in sqlite

2009-02-27 Thread And-Rider
Thank you very much for your help.But after changing the query as per your advice i am still ending up getting the same error.. Is the way i use to convert images as byte the correct way or is there any better way to store retrieve the images...? On Feb 27, 10:06 pm, Nathan