0

The question is in the title. I am having trouble in blob images display since a few days.
When i look to binary datas of the displayed images (who display with the broken symbol, actually they dont really display), i get different raw data form orginal .jpg and the file_get_content() binary file generated.
Here is a related post orm yesterday with some more explanations.
--> mysql blob image displaying with php/html

1 Answer 1

3

Short answer is : yes. There's no reason the contents should be different. Your problem is probably in another castle.

Sign up to request clarification or add additional context in comments.

10 Comments

I totally agree with you... Maybe when the return of file_get_content() goes into the Mysql BLOB it get modified? Check my link and tell me if you see anything suspect from my code
Or maybe it can come from the headers?
If you were sitting in my office, and ask the same question. I would ask that you install Charles HTTP Proxy, and I'd go over the exact response from that url to look for something suspicious.
Hum, I already have the devtool from Chrome who allow me to check headers, but thanks for your answers. Problem is that I dont understand really well the meaning of all those headers things, I gonne check it out on the internet.
Having this return after uploading my image: ------WebKitFormBoundaryFxYwOIY8tJCfDekb Content-Disposition: form-data; name="avatar"; filename="original.gif" Content-Type: image/gif ------WebKitFormBoundaryFxYwOIY8tJCfDekb-- Response Headersview source Connection:Keep-Alive Content-Length:2872 Content-Type:image/gif Date:Thu, 09 Aug 2012 09:36:11 GMT Keep-Alive:timeout=5, max=62 Server:Apache/2.4.2 (Win64) PHP/5.4.3 X-Powered-By:PHP/5.4.3code
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.