比如:
data:image/gif;base64,ZBLARqvF4-_cDUmPkjsH
能否写成
data:image/gif;base64,ZBLARqvF4+/cDUmPkjsH
1
ysc3839 2021-10-29 17:06:34 +08:00
你搞反了吧?
按照维基百科的说法: https://en.wikipedia.org/wiki/Data_URI_scheme Note that Base64-encoded data: URIs use the standard Base64 character set (with '+' and '/' as characters 62 and 63) rather than the so-called "URL-safe Base64" character set. RFC 2397 里没有明确指出,但是给了一段包含+和 /的 example 。 https://datatracker.ietf.org/doc/html/rfc2397 |