Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

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

$
0
0

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.


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>