March 28th, 2013, 08:25 AM
PHP fetches the images from oracle database and when it is displayed Chrome and Firefox display correctly but Internet explorer display partial. What could be the issue?
March 28th, 2013, 10:24 AM
why are you storing images into a database? store them on server and then store the location in database
March 28th, 2013, 01:01 PM
[edited] Putting the images in a database can make some things easier than if they were stored as files (mostly because it comes for free): replicating across multiple instances, backing up with the rest of the database, and sharing across load-balanced web servers. You can still do that with a file-based approach but it means extra work. [/edited]
Does IE even download the entire image? That's the most obvious thing to check.
Last edited by requinix; March 28th, 2013 at 01:20 PM.
Reason: splitting hairs
March 29th, 2013, 07:58 AM
Thank you for the comments.
It is not my choice to store in the database.
This is an existing project initially it was stored in the server and now we are in the process of changing the backend from mysql to Oracle and thought of storing it in the database
Small part of the image is displayed in ie but in chrome and Firefox no issues at all. It display it correctly.
But i will highlight the contents while i was doing the research
The encoding is indicated by ;base64. If it's present the data is encoded as base64. Without it the data (as a sequence of octets) is represented using ASCII encoding for octets inside the range of safe URL characters and using the standard %xx hex encoding of URLs for octets outside that range. If <MIME-type> is omitted, it defaults to text/plain;charset=US-ASCII. (As a shorthand, the type can be omitted but the charset parameter supplied.)
Some browsers (Chrome, Opera, Safari, Firefox) accept a non-standard ordering if both ;base64 and ;charset are supplied, while Internet Explorer requires that the charset's specification must precede the base64 token.
Any help will be really appreciated!
Originally Posted by requinix
March 29th, 2013, 02:22 PM
...Are you using data: for the image?