Hi I am building a web front end for a database that I have inherited and need to display jpegs associated with a customer orders. Unfortunately, the original programmer stores up to 20 hi-res images as blobs in the database that need to be viewed on a
web page with the order. Is it possible to dynamically create a thumbnail version of the image on the fly as the page is loaded instead of loading the full size images. Ideally, I need a free solution, I looked at ImageResizer but it costs $1200 per year.
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Member
1 Points
43 Posts
Dynamically create thumbnail from full size jpg image stored as database blob (VarBinary(Max))
Aug 22, 2017 04:28 PM|PhillD|LINK
Hi I am building a web front end for a database that I have inherited and need to display jpegs associated with a customer orders. Unfortunately, the original programmer stores up to 20 hi-res images as blobs in the database that need to be viewed on a web page with the order. Is it possible to dynamically create a thumbnail version of the image on the fly as the page is loaded instead of loading the full size images. Ideally, I need a free solution, I looked at ImageResizer but it costs $1200 per year.
Thanks
Participant
1061 Points
665 Posts
Re: Dynamically create thumbnail from full size jpg image stored as database blob (VarBinary(Max)...
Aug 22, 2017 11:51 PM|jzero|LINK
Look for ImageProcessor in Nuget
Contributor
2990 Points
1210 Posts
Re: Dynamically create thumbnail from full size jpg image stored as database blob (VarBinary(Max)...
Aug 23, 2017 06:37 AM|Deepak Panchal|LINK
Hi PhillD,
you can try to use Image.GetThumbnailImage Method from System.drawing.
Example:
Output:
Reference:
Dynamically generate and display Thumbnail picture by resizing the Image in ASP.Net
Image.GetThumbnailImage Method
Regards
Deepak
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Member
1 Points
43 Posts
Re: Dynamically create thumbnail from full size jpg image stored as database blob (VarBinary(Max)...
Aug 23, 2017 01:03 PM|PhillD|LINK
Thank you for this. The only thing it looks like I need to change is feeding blob into the code instead of a file path.