Question
Don't want to display images
Hello again. I have setup ImageCFC on my site and it seems to
be working fairly well. However, every once in awhile it won't
write an image to the hard drive when it says it has. I have an
insert statement that adds an indicator to my db once the image
file has been saved to the disk with the cfc.
Some of the images don't get saved even though the insert runs AFTER the writing of the file. Is there a way to read the image on the hard disk before displaying it to the screen to make sure its there? I hate displaying the ugly red x when an image isn't there. I tried cffile "read" and that returned an error when the file wasn't there. http://livedocs.adobe.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=ColdFusion_Documentation&file=00000245.htm
Is there a way to look at the file and if its there, display it, if not, don't. Otherwise how do I solve this prior to the db insert statement so the table isn't lying to me.
Some of the images don't get saved even though the insert runs AFTER the writing of the file. Is there a way to read the image on the hard disk before displaying it to the screen to make sure its there? I hate displaying the ugly red x when an image isn't there. I tried cffile "read" and that returned an error when the file wasn't there. http://livedocs.adobe.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=ColdFusion_Documentation&file=00000245.htm
Is there a way to look at the file and if its there, display it, if not, don't. Otherwise how do I solve this prior to the db insert statement so the table isn't lying to me.
