I have binarydate of image in my database and I want to display it in image control in asp.net How ? if it is impossible please find another way to save it on database and display it in image control
|
Create a regular HTML img element like so:
And in code behind do this:
Where imageBytes is a You are done. The image will be displayed. |
|||
|
In a generic handler (.ashx):
|
|||
|
Most likely the image is being stored as a byte array in the database. If so, then you can use this.
|
|||
|
|
|||
|
|
||||
|
Use this event for the button click to retrieve image and call the |
||||
|