Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2000071

[PHP] +SHow Image from DataBase From: Yurais Fernandez Leal (yurais <email protected>)
Date: 07/08/00

Yes, I know maybe someone asked this first, and the answer was
to:

 LOAD INTO DUMPFILE 'pic name'

and then retrieve the file from PHP

But , isn't there a way for PHP, to echo the Binary stuff directly to
the browser instead of making the Picture first exist in a file ?

something like:

<IMG SRC='showpic.php?$pic'>

And showpic.php
make the Select stuff from the DataBase in Binary Mode, and dunpit
directly to the browser, will this work ? I don't think so...
DO I have to send any header or something to the browser ?

thanks in advance..

-- 
                   ----------------------------------
                         Yurais Fernández Leal
                       MediRed Network SysAdmin.
                       yurais <email protected>
                         http://www.scu.sld.cu/
                       ICQ: 33792610 ICQ-GW: 1031
                          Phone: (53) 226-54204
                               ------------

-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>