1

我的应用程序是基于 SprinBoot,Java 技术构建的

content:
    application/octect-stream:
        schema:
            type: string
            format: binary

通过 swagger codegen 自动生成的代码包含 ResponseEntity<String>java SpringBoot 应用程序中的返回类型。现在我在 byte[] 中有文件数据,如何将其转换为 String 并作为 application/octect-stream 发送?

还让我知道我的数据是否在 byte[] 的 File 对象中如何发送?

4

0 回答 0