gpt4 book ai didi

java - 如何使用 postman 或API从 "Download"文件夹下载文件

转载 作者:行者123 更新时间:2023-12-02 09:43:35 30 4
gpt4 key购买 nike

在我的应用程序中,单击导出图标后,Excel 报告已下载/生成在系统的本地下载文件夹中。我尝试使用服务端(API)-postman 验证此操作。当我点击导出 api(特定于应用程序)时,响应不包含下载文件夹中下载的任何路径/文件名。有没有什么方法可以让我们使用 api 或任何 java 编程方式访问下载文件夹来获取下载的 excel。

我只想读取 Excel 数据并使用 postman 与我的输入数据进行比较。我首先需要使用 api 来完成它。

最佳答案

在 Postman 中选择“发送并下载”操作。根据手册here :

If your API endpoint returns an image, Postman will detect and render it automatically. For binary response types, you should select “Send and download” which will let you save the response to your hard disk. You can then view it using the appropriate viewer. This gives you the flexibility to test audio files, PDFs, zip files, or anything that the API throws at you.

关于java - 如何使用 postman 或API从 "Download"文件夹下载文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56847866/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com