/**
* imgFile 图片本地存储路径
*/
public static String getImgFileToBase64(String imgFile) {
//将图片文件转化为字节数组字符串,并对其进行Base64编码处理
InputStream inputStream = null;
byte[] buffer = null;
//读取图片字节数组
try {
inputStream
Java中读取本地图片并转为base64解决办法
最新推荐文章于 2025-06-28 13:58:27 发布