给base64的前面加上"data:image/jpeg;base64,xxx",html才能显示,你试试看
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABLAAAAKjCAYAAAANs/bAAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAP+lSURBVHhe7P1lmFXHtrcPN9Lu7u7u7t5NuzstuDQ00Li7BUhwDy4Jcc/Ojru7JySEKITgtN9vVS2akL1zznnO8z724Q/X76q55pprWsmc4+4xRmlpFx3ib1V8gGFF+9At249JzXGGFO5Hp+wE+uUPYlrztPj8ILrlj6JX+Qg65Q8wvOI+hlfee0s6tafQb3gAo+YHMWl9GKvRj2I96lFs24RGPYzdqPuxbz2JafUOtNKXoRU2G63IBWglrUY//w6MK1agXzEHw7pp2I6eg23LbIxLJxA9eSVmqWUMCQrDJjEOQ18v7IIDsPH3Rt/BAlMnS9yDPPAO8cDWzQI9y+FCOuhY6inZeDoo2Xk4YePmgKWDNcZWpugaGTBMVwet4cPR0tZhmLbuTWkzXKzXM9RF30gPA2MDDE0MMTI1UnJxc0XPQB9zS0ssrK2wsLXGxNKcIfrDMbW1wCPYm/px9fjGeVM3qYKClgysAw1YumsWYUV+LLl7PiMX1tO6sIktJ+7g4L3bmLtgAuERHqRlRGHlbIJbmAde8YE4RfjglxJNcFY0UYVRJFZEUD4+ndTSYPyiXXBws8bI0ARTfQtMdIwxHKaH0XB9sWyIsa4xekP1GaY1HN0helgYW+Ji7o2HXjSGWsFo6QahZR2Nrm8hBt6ZGNt7MMxQBwsnK3Udhrrm6GqZYGnkhLOTN76RwQRnxOAY7IVPbCjuEQFYejmRWJKDiYc9RkLmfp64xiXiFBVLafso7OL8GO5ri3GIJ87JySTWt+GZVoJNcAJJ+cXEjyjHMCSXwMn70J78D7Qmv4hW+/1oVa9Gu2E+evmNDI9NRysoBofCBkyyqrEsaMU2uwlt1xhM3SIx9YvAMjAMHTM70QaCCcgIwCLIDmNHf3E+0dgWJpA4t4HUmY3Y5Aaj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