1. Download our Official Android App: Forums for Android!

Insert and retrieve image from sqlite

Discussion in 'Android Development' started by Kim Luther M Fonte, Oct 5, 2017.

  1. Kim Luther M Fonte

    Thread Starter
    Rank:
    None
    Points:
    26
    Posts:
    14
    Joined:
    Aug 25, 2017

    Aug 25, 2017
    14
    2
    26
    Male
    Software Engineer/Developer
    Quezon City, Philippines
    Hi android developers.

    I'm developing an app with form and an adding an image is included on the form. Upon insertion of image, I managed to convert the image into byte in order to insert it in sqlite as blob. But the value of it changes everytime I fetch it from the table. Also, i observed that i added 2 forms with the same image but their image value is different (is this normal?) then upon fetching it to display, the value that was saved in the table and the value I'm fetching is different. And it changes everytime so no image was shown when display the saved image in a record. Any solution or tricks? Thank youuu in advance! Have a great day!
     

    Advertisement

Share This Page

Loading...