How to upload image in listview that has been saved in sqlite

sree_dsree_d Member ✭✭✭

i want to show image like this in listview which is stored in sqlite.

i have saved image in byte[] in one form. How will i show image in listview in another form.

` public class PRODUCT_CAT : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
[PrimaryKey, AutoIncrement]
public byte[] _img { get; set; }

          public byte[] Image
    {
        get { return _img; }
        set
        {
            if (_img == value)

                return;
            _img = value;
            OnPropertyChanged();
        }
    }

    private void OnPropertyChanged([CallerMemberName] string propertyName = null)
    {
        PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
    }
}`

in form1, i will upload image and save it as byte[] in PRODUCT_CAT .
Now in form2, in listview i want to display this image.

Answers

Sign In or Register to comment.