Populate list of thumbnail images from database.
Posted on 2014-03-04
I want my webpage to work like this: on the left side is a list of photographic categories, the user clicks a category and a vertical list of thumbnail-sized image elements is populated on the right with the relevant photographs.
The images are stored in a filestream column in SQL Server. Dynamically populating a list of image elements using JQuery is no problem, it's how to grab the streamed image from the database, then convert it into the correct data type for AJAX to return to the image SRC property. I've read something about encoding the images as a base64 datatype, which then gets appended to the URL . . . can someone take me through it end-to-end?
I'm doing this using an asp.net webpage but not using any asp controls for this particular piece.