Skip to main content
Skip table of contents

readResponseInputStream

Versionshinweise

24.1

Code

GROOVY
InputStream RestUtils.readResponseInputStream(Response response);

Beschreibung

Liest den Antwort-Stream als InputStream  einer Ressource, die eine Antwort vom Typ application/octet-stream  liefert.

Parameter

  • response - Die auszulesende Antwort.

R├╝ckgabe

Die Antwort als InputStream.

Beispiele

GROOVY
Response response = RestUtils.get(request);
try (InputStream responseStream = RestUtils.readResponseInputStream(response))
{
  byte[] bytes = responseStream.readAllBytes();
  // E.g. create document...
}

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.