本帖最后由 楚子沦i 于 2021-12-3 17:59 编辑
应该把,前的内容去掉然后解码就可以了
[Python] 纯文本查看 复制代码 imgurl = 'data:image/jpeg;base64,/9j/2wCEAAIBAQEBAQIBAQECAgICAgQDAgICAgUEBAMEBgUGBgYFBgYGBwkIBgcJBwYGCAsICQoKCgoKBggLDAsKDAkKCgoBAgICAgICBQMDBQoHBgcKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCv/AABEIAEkASQMBIgACEQEDEQH/xAGiAAABBQEBAQEBAQAAAAAAAAAAAQIDBAUGBwgJCgsQAAIBAwMCBAMFBQQEAAABfQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJSYnKCkqNDU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2drh4uPk5ebn6Onq8fLz9PX29/j5+gEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoLEQACAQIEBAMEBwUEBAABAncAAQIDEQQFITEGEkFRB2FxEyIygQgUQpGhscEJIzNS8BVictEKFiQ04SXxFxgZGiYnKCkqNTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqCg4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2dri4+Tl5ufo6ery8/T19vf4+fr/2gAMAwEAAhEDEQA/APwcDy4yZaRnlHVz+VAYcAnI7irS6WzX7WUH7wh2UEL1AyScdulYtxjuezCNWp8PoVla4JwH698U+QXKfLvOcZP9KuQaS7jc7EA9+malm0yVmEEKlpB1AHOMfyrN1YXO+GBxEqd9TLDXBOAxz6Vc8O2KazrtrpV5fCGO4mCGRmwAT0BPbJwM9s5qZtMnggV0bAl+7J03EdcHuBx+J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M1r/AOgSVs/tUf8AIlwf9hub/wBI7Wv5wxXD+XVeMJJp352m7t3WktFsuzaV2tL20P7fwmDnLhylxHGdpOmrUrfu41LXdVLfmae17XvLWTuvA/jj+0Vq3iy3k0jSdCh0y2kYNKySmSa5cDGZpDjdjsqhUHpnmvEb++mvJTLO4Y98muh8ZdbX/rm//oRrlpujV/Q2UYDC4LDKNGNl/SP4y46z3Nc2zSUsXVc/XzV/1I2fccsfwplPPQf59KZXsH59uf/Z'
图片的base64地址,我转化一直提示不支持此格式,不管用哪个后缀都不行。
求大佬帮帮忙 |