cancel
Showing results for 
Search instead for 
Did you mean: 

Chrome displays correctly image icon but firefox is not displaying.

Highlighted
New User

Chrome displays correctly image icon but firefox is not displaying.

I am using thyme leaf for presentation layer.
Following is the code line.

<img style="float:left;display:block;max-height:48px;max-width:48px;min-height:48px;min-width:48px;" th:src="'data:image;base64,' + ${chartImageData}"></img>

above code line correctly works in chrome and displays image icon
However, it's not working for firefox and while inspecting element in firebug it gives error as "failed to load given url".

3 REPLIES

Re: Chrome displays correctly image icon but firefox is not displaying.

Do you image block Addons(Extensions)?


Try the Firefox Safe Mode to see how it works there. The Safe Mode is a troubleshooting mode, which disables most add-ons.

(If you're not using it, switch to the Default theme.)

  • You can open the Firefox 4.0+ Safe Mode by holding the Shift key when you use the Firefox desktop or Start menu shortcut.
  • Or use the Help menu item and click on the Restart with Add-ons Disabled... menu item while Firefox is running.

Don't select anything right now, just use "'Start in Safe Mode" To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shift key) to open it again. If it is good in the Firefox Safe Mode, your problem is probably caused by an extension, and you need to figure out which one.

Please follow the Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems article for that.

When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.

Site Moderator

Re: Chrome displays correctly image icon but firefox is not displaying.

What is the resulting data URL and what kind of image is this (jpg, png, gif)?

Does it work with src instead of th:src ?


A good place to ask advice about web development is at the MozillaZine "Web Development/Standards Evangelism" forum.

The helpers at that forum are more knowledgeable about web development issues.
You need to register at the MozillaZine forum site in order to post at that forum.

New User

Re: Chrome displays correctly image icon but firefox is not displaying.

Other images are displaying correctly.and i think its the issue with jquery because we are showing images dynamically.