I want to show images get from database in a base64 form and show in image gallery. Please someone suggest me the image gallery and how i can show image dynamically.The count of images maybe 2,5,6,.. . I don't know the count of images. how i can show images in a bootstrap or other plugin with MVC 5?
Asked
Active
Viewed 410 times
-2
-
Please try something first and post if you struck somewhere or post the code that you are trying. – Siva Gopal Nov 10 '15 at 06:14
1 Answers
0
Use below code it will replicate images from Model. you can use Bootstrap Image Gallery
@foreach (var item in Model.Country)
{
<img src="data:image/jpg;base64,@(Convert.ToBase64String(item.Image))" alt="@item.CountryName" />
}

Ravi
- 316
- 7
- 17