I just wasted an hour and a half trying to get an image to appear on a webpage. That’s right: a whole friggin’ hour and a half for something so trivial! You’d think I’ve only been doing this stuff for a day or two, not 6 years.
I drove myself crazy.
Q: Is the image corrupt?
A: Can’t be. I tried creating it with two different applications.
Q: Is the database table from which the reference to the image was drawn corrupt?
A: Why are the previous references working, if that’s the case.
Q: Did I copy the image to the right directory?
Q: Are the file attributes for the image on the server “normal”?
A: Look fine to me. They’re like all the others.
Q: Is the HTML markup referring to the image wrong?
Q: Could it be a browser cache issue at this point?
A: Cleared cache, but the image isn’t showing up on Netscape or IE.
Q: Would rebooting the computer help?
A: In theory, it shouldn’t. Doing so with other strange problems has cleared things up. But not this time.
Then it occurred to me.
Through much of the evening, I’ve been having to set my FTP program to upload files in ASCII mode. However, images are binary and, therefore, must be uploaded in binary mode. So I uploaded the image again, this time in binary mode, and, of course, it showed up on the page.
In the back of my mind, I knew I would kick myself once I had figured out what I was doing wrong. But I never thought it would be something SO STUPID!
I give you all permission to laugh at me. I deserve it.