I would like to know what is the maximum length of a Base64 DataURL Image to be load in a browser?
Thanks!
Citing MDN on this:
Length limitations Although Mozilla supports data URIs of essentially unlimited length, browsers are not required to support any particular maximum length of data. For example, the Opera 11 browser limits data URIs to around 65000 characters.
Length limitations
Although Mozilla supports data URIs of essentially unlimited length, browsers are not required to support any particular maximum length of data. For example, the Opera 11 browser limits data URIs to around 65000 characters.
And caniuse.com, where you can also look up the support across browsers:
Support in Internet Explorer 8 is limited to images and linked resources like CSS files, not HTML files. Max URI length in IE8 is 32KB. In IE9 JavaScript files are supported too and the maximum size limit set to 4GB.
1.4m articles
1.4m replys
5 comments
57.0k users