vscode-restclient icon indicating copy to clipboard operation
vscode-restclient copied to clipboard

Support large binary responses

Open ltrzesniewski opened this issue 2 years ago • 0 comments

  • REST Client Version: 0.25.0
  • VSCode Version: 1.68.1
  • OS Version: Windows 10, version 21H2, build 19044.1706

Steps to Reproduce:

  1. Download a large binary file
  2. VS Code displays the following error notification:

Cannot create a string longer than 0x1fffffe8 characters

image

The "Save Response Body" action saves the previous response. As far as I can tell, the binary file is lost.


Further comments/ideas/my 2 cents:

Note that the previous response stays in the response pane, which is confusing. IMO the response pane should at least be cleared while a request is running. Anyway, the extension should not attempt to display binary data as text.

Ideally, the response pane could be updated live while the response is being downloaded. As an example, the JetBrains client displays a progress bar:

image

Then it shows a clickable link:

image

Also, syntax such as >> outut.bin or >>! outut.bin (which some other clients use) could be supported.

Thanks for this extension BTW! 🙂

ltrzesniewski avatar Jun 22 '22 09:06 ltrzesniewski