Without giving this much thought ... why not use the source portion of the
image tag to point to a cfm file which would return the image with the proper
mime type? Maybe something like:
<img src="getimage.cfm?image=image1.jpg">
Then getimage.cfm would change the mime header type to jpg and stream the
image from the DB back to the browser.
It should be just about as quick from the browser's standpoint as requesting
the image from a file. From the network standpoint ... same number of bytes
transferred. And from the webservers standpoint, It should be less of a load
then reading from the filesystem? Downside, is increased DB load.
Upside, easier management of images.
Cheers,
Bill
In a message dated 3/23/01 2:52:07 PM Eastern Standard Time,
[EMAIL PROTECTED] writes:
> There is no way in CF of selecting the image from the database and directly
> display it on a page, you must store it in a file first.
> Thera are some tags for this in the Developers Exchange...
>
> Personaly i don't think storing the images in the database is a god idea in
> CF,becouse of the fact
> that you have to write it to a file anyway, i would stick with just storing
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists