application_octet_stream
时间: 2023-09-02 13:15:32 浏览: 322
application/octet-stream是一种常见的MIME类型,用于表示二进制数据流。它通常用于在网络上传输文件,无论文件的类型是什么。前端在接收application/octet-stream格式的数据时,可以通过下载文件的方式进行处理。后端在接收application/octet-stream格式的数据时,可以通过读取请求体中的二进制数据来处理。需要注意的是,对于application/octet-stream类型的数据,传递文件相关的参数通常会放在请求头中,如文件名、文件大小等。可以通过@RequestHeader注解来获取这些参数值。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [前端接收 type: “application/octet-stream“ 格式的数据并下载,解决后端返回不唯一](https://blog.csdn.net/qq_53145332/article/details/123595850)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [SpringBoot:使用application/octet-stream 流式上传大文件,解决Mutipartfile multipart/form-data上传...](https://blog.csdn.net/weixin_43859729/article/details/130420774)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文