Qt 图片转为base64编码

找到:https://forum.qt.io/topic/72282/save-qimage-to-base64-string 我自己稍微改了下 QByteArray toBase64(QString imgPath) { QImage image(imgPath); QByteArray ba; QBuffer buf(&ba); image.save(&buf,
相关文章
相关标签/搜索