We are using the EntityFramework with CodeFirst and DataBase PostgreSQL. There are some tables that should save images, and POCO classes are referenced as byte array.
Up to this point everything is quiet. I can get the images with HttpPostedFileBase parameters and convert them to byte[]
to save to the database. The problem is when I want to retrieve this image from the database and put it in the <input type="file"/>
field again.
The question is how to return this image in View Edit in the same <input type="file"/>
field, as they do with the other fields of type string, int, etc.