Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

Cancel
3
  • 1
    If you have the response, you already downloaded the data. I guess you just need to write it to a file instead of printing it?
    – mkrieger1
    Commented Mar 5, 2020 at 10:58
  • thank you for your reply, Can I know how to write it to a file?
    – qing
    Commented Mar 5, 2020 at 11:49
  • 1
    response.bodyBytes is the binary data. body is the same data already passed through a character recorder. The default is Latin 1 unless the content type header included an encoding parameter. Commented Mar 5, 2020 at 12:00