|
|
|
@ -155,9 +155,12 @@ public class Sign {
|
|
|
|
|
System.out.println(responseBody);
|
|
|
|
|
|
|
|
|
|
JSONObject jo = JSON.parseObject(responseBody);
|
|
|
|
|
String imgBase64 = jo.getJSONObject("data").getString("binary_data_base64");
|
|
|
|
|
String imgBase64 = jo.getJSONObject("data").getJSONArray("binary_data_base64").getFirst().toString();
|
|
|
|
|
|
|
|
|
|
System.out.println(imgBase64);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String filePath = "D:/temp/result.jpg"; // 目标文件路径,可以自行设置合适的路径和文件名
|
|
|
|
|
|
|
|
|
|
// 对 Base64 字符串进行解码
|
|
|
|
|