Home  >  Q&A  >  body text

java - HTTP request to obtain file output stream, how to convert it to file

Excuse me, I send a request to return a file stream, field name: ouput type: ouputStream

jsonObject.get("ouput") gets the file stream, and the stream has data. How to convert it to the specified file?

Please help me, how to solve it

我想大声告诉你我想大声告诉你2713 days ago545

reply all(1)I'll reply

  • 给我你的怀抱

    给我你的怀抱2017-05-17 09:59:43

    Converting to a specified file can be understood as reusing file to create a new file, and then using streams to operate on the file.
    If so, you can use file and outputstream to write to file.

    reply
    0
  • Cancelreply