• <img>标签的src属性直接显示base64转码后的字符串变为图片


    在<img>标签 src 增加:data:image/jpeg;base64 格式:<img src="data:image/jpeg;base64,base64转码后的字符串" ></img>

    <img 
    src='data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCABQAMgDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD3+iiigDx/9o7/AJJ5p/8A2FY//RUtHgT/AJKH4Z/7J/a/+jVo/aO/5J5p/wD2FY//AEVLR4E/5KH4Z/7J/a/+jVoA8g/5uF/7mv8A9u69A+Kf/Jwvgr/t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XsFeP/s4/wDJPNQ/7Csn/oqKvYKACiiigAooooAKKKKACiiigAooooAK5G28Tai+rW80q2v9j3d9cafEixsJkeIP87NuIZWMT8BQRleTzXXVyFr4Z1KPV4IZmtP7HtL+41CF1kbz3eUP8jLtwAplkO4MScLwOaB6W/rz/WxVtfF2s/ZBeS2UF2t/pc2pada2sbLKNm0iJyWbexEicqF5BGDxUFv401NtNvJEutH1HElrFBqNqjpbLJM+xkcF2JKcMQGGdwB2nmpbfwXqVxYf2ZqVxax2lppc2l2ctu7O8iSbR5kilQFIVEG0FgSW5HFWYtA1mQajeXVloYubizhslsd7y200cbMTvJRcbg7KBtbb/t9Ken9er/S3n+IPy3/4b/g/1YQeJ9TaWTRlexbWU1FbD7SIWMHMPnlzHv3D5AV27+vOccVXn8a3YsrGGS80jTLwtcreXl8D9mjMEgiO1d6n53K4BfgZ6kcy2/hK+srSK8s7bS7bUYdQF5FZQsUtUQRGHyg4TP3Czbtn3j0xSweFdT0/7BqlvHp91rEQuvOinleOHNxIJH2OEY/KQAPl5Gc4zSe39dv8/wCrWDS2n9b3/C1v+HE1TxTrFkbtwdKRdK0yPUL1CXk+0bt+VifK7B+7OGKtksOBjm1q3iDUtP1HT3SfTGtr2eKK30/Y7XVwjFQ8ituAXYGLEbGGF5YbvloXngu+k0bTtIFpod1HBZC2F/cRET2jHh3hBVgQRjC5TGBkntqarpGsalNDpxj00aRHcwXEdwHcTxCJlcII9pUksmN+9cBvu8c0rc3z/XX8P6uL/L9Dp6KKKkAooooAKKKKACiiigAooooA/9k=' ></img>
  • 相关阅读:
    程序猿编程,软件设计都干什么?
    工作流——来龙去脉
    开发编码流程
    我的spring-boot开发环境
    JSR 303
    项目中java异常处理
    学习交流,一些数据结构和算法实现!
    C运算符
    js锚点
    玻璃工艺学笔记
  • 原文地址:https://www.cnblogs.com/Angel-szl/p/11201067.html
Copyright © 2020-2023  润新知