4
We are using Entityframework with Codefirst and Database Postgresql. There are some tables that should save images, and the POCO classes are referenced as byte array.
Up to that point all quiet. I can grab the images with Httppostedfilebase parameters and convert to byte[]
to save to the database. The problem is when I want to rescue this image from the database and put it in the field <input type="file"/>
again.
The question is how to return this image in the Edit View in the same field <input type="file"/>
, as with other string, int, etc fields.
I understood, and I thank you for the solution. But what if I want it to change the image? How would I?
– user46439
In this case, you can provide a link to delete the image, and then display the <input type="file" /> again to allow the user to upload a new image.
– Marcell Alves