How to bind a Image Source from sqlite database ? RRS feed

  • Question

  • User369473 posted

    Hi everyone I have a little error and I dont know what to do...I stored image path as a string in database and now I want ,Image Source to get that path from database ..

    It doesn't work

    Wednesday, September 5, 2018 10:25 AM


  • User261729 posted


    conn.Table<User>() it returns list of objects of User. So you can't convert it in to string. You can do like; conn.Table<User>().ToList() and then go through the list and take one item from list. Like; var list=conn.Table<User>().ToList() UserImage.Source = list[0].YourPropertyName;

    By looking at code I thing you must need go through this



    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Wednesday, September 5, 2018 1:12 PM