Display Binary Image Data From a Database on a Web Page

Category:
ASP, HTML and XML
Type:
Snippets
Difficulty:
Intermediate
Author:
Anonymous

Version Compatibility: ASP

More information:
This code demonstrates how to read binary (i.e., BLOB/Image) data from an Access database and display the image on the web page using the response.binarywrite method.

I must credit Dino Esposito for his article at www.asptoday.com, entitled "Pulling Images from an Access DB". I was not aware that a demo of this type could be done with Access. (Even though KB Article Q173308 rules out the posibility, Dino not only overcame the technical constraints, but also clearly explained why and how).


Instructions: Click the link below to download the code. Select 'Save' from the IE popup dialog. Once downloaded, open the .zip file from your local drive using WinZip or a comparable program to view the contents.

Download aspbinfile1.zip