调节系统类整理
This commit is contained in:
-10
@@ -17,14 +17,4 @@ public class ImageToBase64Converter {
|
||||
String base64Image = Base64.getEncoder().encodeToString(imageBytes);
|
||||
return base64Image;
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
String imagePath = "D:\\develop\\2.jpg";
|
||||
try {
|
||||
String base64Image = imageToBase64(imagePath);
|
||||
System.out.println(base64Image);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user