How to show BLOB ?
| From: | Roman Duriancik | Date: | Tue, 10 Jun 2003 13:14:29 +0000 |
| Subject: | How to show BLOB ? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-150902@lists.php.net to get a copy of this message | ||
I have a blob in the database. I want to open a file=BLOB in the browser such
a way as if I clicked on a link. So if it is pdf, its opened by pdf plugin,
if it is doc, it is open by word plugin, if it is zip the dialog for
opening/saving to disk is opened, if it is jpeg it is directly displayed in
the browser. The header() function with Attachment doesn't work. Any idea how
to achieve this effect without writing the BLOB to a temporary file somewhere
on the disk and opening this file ???
roman