您好 这个需要自己转的
public static String getImage() {
String image = "";
try {
byte[] bytes = Files.readAllBytes(Paths.get("/home/jerry/workspace/php/recognize/1.jpg"));
image = Base64.getEncoder().encodeToString(bytes);
} catch (Exception e) {
System.out.println(e.getMessage());
}
return image;
}