I am writing a phone directory console which will return contact information and a picture of the person. The contact information and picture are stored in a database. Currently I am querying this information as shown/described below.
I am using an img tag and the src property points to an asp file, whose content type is image/gif with a response.binarywrite of the image data:
<img src="getimage.asp?PERSONID=<%=personid%>">
The only problem is that the images are of different sizes and therefore, it makes the Results page look skewed. The images have already been captured and stored in the database. The database also was not setup to store the properties of the imgaes? I have a dynamic resize script which uses a filesystemobject to resize an image using its default ratio to a size that will meet my pages needs.
Is it possible to binarywrite the image data into a filesystem object and then display the image? How would I do this?
I am using an img tag and the src property points to an asp file, whose content type is image/gif with a response.binarywrite of the image data:
<img src="getimage.asp?PERSONID=<%=personid%>">
The only problem is that the images are of different sizes and therefore, it makes the Results page look skewed. The images have already been captured and stored in the database. The database also was not setup to store the properties of the imgaes? I have a dynamic resize script which uses a filesystemobject to resize an image using its default ratio to a size that will meet my pages needs.
Is it possible to binarywrite the image data into a filesystem object and then display the image? How would I do this?