Here is my class (product.cs) where is the method to insert the image:
public static void InsertProductIMG(byte[] image, string contentType)
{
string cs
Create a web page that returns the image. You would select the bytes from the database (as you have already code written to insert, I think you know how to select). Once you have the bytes, you need to set the mime type and write the bytes to the response stream.
var bytesFromDatabase = getImageFromDatabase();
context.Response.ContentType = "image/jpeg";
context.Response.BinaryWrite(bytesFromDatabase);
Edit:
Just use a img tag with the cource tet to the aforementioned aspx web page. Eg: