Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

How can I display image from database in asp.net mvc. I created image table and image path as varchar

  public FileContentResult DisplayImage(string id)
    {
        byte[] image = repository.GetImage(id);
        return File(image, "image/jpg");
    }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #How #I #display #image #database #I #created #image #table #image #path #varchar
ADD COMMENT
Topic
Name
3+8 =