如何使用rest自动化excel格式API响应?

如何使用rest自动化excel格式API响应?,api,Api,Am自动化提供.xls响应的API。但在将正文作为字符串读取并获取方框字符时。谁能帮我读一下字符或者把它存储成.xls文件吗?谢谢 代码: 输出: ResponseCode: 200 ResponseValue= Box Characters(The output is .xls file) 终于找到了保存excel格式API响应的方法。在下面找到解决方案。 代码: ResponseCode: 200 ResponseValue= Box Characters(The output is .x

Am自动化提供.xls响应的API。但在将正文作为字符串读取并获取方框字符时。谁能帮我读一下字符或者把它存储成.xls文件吗?谢谢

代码:

输出:

ResponseCode: 200
ResponseValue= Box Characters(The output is .xls file)

终于找到了保存excel格式API响应的方法。在下面找到解决方案。 代码:

ResponseCode: 200
ResponseValue= Box Characters(The output is .xls file)
response=httpRequest.get();
FileUtils.writeByteArrayToFile(new File("c:/Folder1/test.xls"),response.body().asByteArray());