You are here: Confusion re blobs and images « All PHP « IT news, forums, messages
Confusion re blobs and images

Posted by kenoli on 12/24/06 09:15

I want to store thumbnail images in a table with person data and then
retreive the image data and dislay it on a web page along with other
data about the person. All of the examples showing how to retrieve
image data from a blob field seem to assume that it will be displayed
on a separate page sending a header like this:

Header( "Content-type: $type");
echo $data;

I'd like to retrieve the data and display it on a page in the middle of
other information like I would an image file stored in a directory,
e.g.

<img src=[data from the blob field]>

I don't really understand the Header . . . echo construction. I have
just seen examples of this but no explanations about is how this works.

I thought about perhaps retrieving the data from the blob and then
writing it to a file and then displaying the file using <img> but
couldn't figure out how to do that aside from thinking it may use
file_put_contents() somehow, though I couldn't figure out exactly how
to do it.

Help!

--Kenoli

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация