Questions Tagged With apihttps://answers.axonivy.com/tags/api/?type=rss&user=John%20Moserquestions tagged <span class="tag">api</span>enTue, 08 Jan 2019 10:00:55 -0500Streaming with Ivy REST APIhttps://answers.axonivy.com/questions/3602/streaming-with-ivy-rest-api<p>Dear Ivy Team</p> <p>I have the following case: User should be able to upload scanned documents (1...xx MB) via Ivy and the data should be streamed through the REST service (layers). Since each REST service decouples (therefore no shared memory) the memory required to transport the document data could be quite high. To avoid that I would like to stream the data down to the persistency layer.</p> <p>Problem: Currently I am trying to pass binary data -&gt; "In Inscribe Rest Service Call Activity" -&gt; Body, entity -&gt; binary data and content-type=application/octet-stream and read it by the consumer REST service with HttpServletRequest request-&gt;getInputStream(). Though here I get an error (InputStream seems to be already closed).</p> <p>Question: Is this approach correct or do I have to use multipart/form-data (if yes, do you have an example, especially if the call is executed by the Ivy REST client).</p> <p>Thanks in advance for a feedback.</p> <p>Best Regards John</p>John MoserTue, 08 Jan 2019 10:00:55 -0500https://answers.axonivy.com/questions/3602/streaming-with-ivy-rest-apiapirest