I store image data into MySQL, but when I use the code:
Header("Content-type: $type"); echo $data;
no image displayed. why?
That can have several reasons. Is the $type correct? Is the $data filled? is the $data filled with the proper data?
check out the column about "storing binary data in a mysql database" on this site.
My code is just follow the column you mentioned. I checked out : 1. $type is /image/gif 2. $data is filled. 3. how to know whether the data is proper?
This problem happens in linix+apache,but it works quite good in windows+apache.
/image/gif is not a good contant-type. use "Image/gif"
sorry, it is image/gif is capital sensive?
Did you read the column about storing binary data in a database?
NULL
Sure. my code is qretty well used in win98 + apache