gpt4 book ai didi

javascript - Base64 DataURL 图片的大小限制是多少?

转载 作者:IT王子 更新时间:2023-10-29 03:16:01 27 4
gpt4 key购买 nike

我想知道要在浏览器中加载的 Base64 DataURL 图像的最大长度是多少?

谢谢!

最佳答案

引用 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.

caniuse.com ,您还可以在其中查找跨浏览器的支持:

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.

关于javascript - Base64 DataURL 图片的大小限制是多少?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12637395/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com