I'm new to Asp.NET MVC development and a I want to make an application that displays multiple images from a database in the same View. I'm storing the images as LONGBLOB and converting then to a base 64 string.
I'm trying to display them like this:
<img src=<%:Html.Value("photo")%> />
However, I think that the URL doesn't support too big strings as parameters.
My Question is: Which is the best way to display images from database? I need to store them in a image server? Create a maps route to save the images in each URL?
I hope it was clear.
You could try something like this:
FileContentResult
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With