BLOB image appearing as characters

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
khushbush
Forum Commoner
Posts: 99
Joined: Tue Mar 11, 2008 11:50 am

Re: BLOB image appearing as characters

Post by khushbush »

Hmmm...yes...but I think I will have to revert to my original problem as this one poses far too many new complications...

I have now repositioned the image...and although there aren't anymore characters, the image still refuses to show up. There is, however, a broken image icon.

Thanks for the help so far.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: BLOB image appearing as characters

Post by pickle »

What happens when you try to view the showimage.php file directly rather than embedded in a page?
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
User avatar
khushbush
Forum Commoner
Posts: 99
Joined: Tue Mar 11, 2008 11:50 am

Re: BLOB image appearing as characters

Post by khushbush »

Well...when I try to view showimage.php on its own, I get a blank page...however, when I refer to a particular property ID within the database, I then see the desired picture show up.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: BLOB image appearing as characters

Post by pickle »

That makes perfect sense. If you're not requesting an image ID, no image should show up.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
User avatar
khushbush
Forum Commoner
Posts: 99
Joined: Tue Mar 11, 2008 11:50 am

Re: BLOB image appearing as characters

Post by khushbush »

Yes, I'm perfectly happy with that...I'm just a bit baffled as to why the picture won't show up as desired when embedded in a page.
Post Reply