-2

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?

Hiba
  • 231
  • 1
  • 7
  • 23

1 Answers1

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