Major part of this question has been asked so many times that it would be bad to answer it again. Please see:
http://www.codeproject.com/search.aspx?q=database+store+%28bitmaps+OR+images+OR+pictures%29+%28%22ADO.NET%22+OR+%22C%23%22+OR+%22VB.NET%22%29&doctypeid=1%3b5[
^].
In many cases, such as with Web sites/application, it would be more practical to store just the image names and store the images themselves in the file system on server side.
Remaining problem is showing images in
ListView
. But the problem is: you did not specify which type do you mean, exactly. There are different unrelated (but similar) types using this name as a
simple type name, so which one? I don't want any guesswork. Always specify full type name. Better yet, just read documentation on this type.
[EDIT]
As to presenting images in the instance of
System.Windows.Forms.ListView
, you can get the idea in this MSDN articles:
https://msdn.microsoft.com/en-us/library/system.windows.forms.listview.smallimagelist%28v=vs.110%29.aspx[
^],
https://msdn.microsoft.com/en-us/library/system.windows.forms.listview.largeimagelist%28v=vs.110%29.aspx[
^].
Main thing here is: you have to collect all images in one object of the type
System.Windows.Forms.ImageList
, the property of the
ListView
. Then the images shown in the list view will be defined by the indices assigned to the property
ImageIndex
of the item.
The presentation of the list view depends on the value of
View
property:
https://msdn.microsoft.com/en-us/library/system.windows.forms.listview.view%28v=vs.110%29.aspx[
^],
https://msdn.microsoft.com/en-us/library/system.windows.forms.view%28v=vs.110%29.aspx[
^].
—SA