Binary data

    Date: 02/08/05 (PHP Community)    Keywords: php, html

    Hi all,
    I have saved my images into a table as binary data. I can get it out again with the method that I found at phpbuilder. Here is the test code.

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

    The problem is that my real program pulls the images and text for the record and then displays it in an HTML page with tables and a bunch of other stuff. As soon as I added the Header line only the first image shows and thats it. I am assuming this has to do with HTTP headers and so forth which I am not entirely sure of. So if you could tell me how to display my binary image data or point to me some resources when I can learn how I would appreciate it.

    Source: http://www.livejournal.com/community/php/256415.html

« ftp || stripping HTML formatting »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home