Search
 
SCRIPT & CODE EXAMPLE
 

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");
    }
Comment

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>
Comment

PREVIOUS NEXT
Code Example
Csharp :: dxf read c# 
Csharp :: get mouse inpuit new input system 
Csharp :: convert path to uri c# 
Csharp :: preprocessors in c# 
Csharp :: ultimate space cruiser 
Csharp :: get key in dictionary c# 
Csharp :: unity check if gameobject is inside collider 
Csharp :: c# windows forms cancel event 
Csharp :: c# const 
Csharp :: check if two date ranges overlap c# 
Csharp :: c# array zaheln speichern 
Csharp :: c# jagged array initialization 
Csharp :: how to check type in c# 
Csharp :: how to do that a objetct moves in c# 
Csharp :: clickable table row asp.net core 
Csharp :: automapper c# initialize error 
Csharp :: instantiate type c# 
Csharp :: binding on button c# 
Csharp :: serialize xml as array C# 
Csharp :: invalidoperationexception c# ui thread 
Csharp :: ado net execute sql query 
Csharp :: c# xunit theory classdata model 
Csharp :: unity hide mouse first person 
Csharp :: cursor position c# 
Csharp :: Non-Serialized Fields in unity inspector 
Csharp :: modal barrier in flutter 
Csharp :: display image script unity 
Csharp :: unity how to check serialized enum 
Csharp :: fill dictionary c# 
Csharp :: c# get name of type 
ADD CONTENT
Topic
Content
Source link
Name
8+5 =