> 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 ???

You need to get header() to work. Use header() to deliver the correct
content-type for the file, then echo the $BLOB data. That's it. Show your
code if it's not working.

---John Holmes...


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to