AL icon indicating copy to clipboard operation
AL copied to clipboard

Https Requests - Multipart

Open PedroLReis opened this issue 8 years ago • 1 comments

Hi,

I've developed functionality to send a Mulitpart file via a Https Request; however, when streaming a blob/text to the HttpContent class only the first or last line gets appended to the content. For example, when establishing the connection with a username and password the request is successful; however, when the blob is a stream on of a Multipart file only the first or last line is appended to the HttpContent class

My VS code for the development looks like this:

Code Example.txt

Example of the stream to establish connection; Authorization - Credentials.txt

Example of the stream to send a multipart file; Multipart Blob.txt

This development was tested in Nav 2018 CU3/5 with the extensions provided from both of the builds, to be used later in D365BC.

Is this a bug, am I overlooking something or is it not possible with this version of AL/NAV?

Many Thanks, Pedro

PedroLReis avatar May 24 '18 14:05 PedroLReis

This case can be closed. If you stream directly from the blob it works.

PedroLReis avatar May 31 '18 13:05 PedroLReis