Horje
How can I display image from database in asp.net mvc. I created image table and image path as varchar Code Example
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");
    }
How can I display image from database in asp.net mvc. I created image table and image path as varchar
<td><img src="<%= Url.Action( "DisplayImage" , "User" , new { id = item.id} ) %>" alt="" /></td>




Csharp

Related
C#  async to sync Code Example C# async to sync Code Example
log4net.config configuration Code Example log4net.config configuration Code Example
c# method returns multiple values Code Example c# method returns multiple values Code Example
c# add char to string Code Example c# add char to string Code Example
unity get max occurrence in list Code Example unity get max occurrence in list Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8