microsoft / AL

Home of the Dynamics 365 Business Central AL Language extension for Visual Studio Code. Used to track issues regarding the latest version of the AL compiler and developer tools available in the Visual Studio Code Marketplace or as part of the AL Developer Preview builds for Dynamics 365 Business Central.
MIT License
744 stars 245 forks source link

Send a picture via Stream to the Web Service - strange/wrong behaviour #4348

Closed DmitryKatson closed 2 years ago

DmitryKatson commented 5 years ago

Hi Team. I'm integrating my app with customVision.ai service.

The api is quite simple image

So I'm using HttpContent.WriteFrom(PictureInStream);

If the code looks like that image

i receive an error from web service image

But when I add the next line to the end HttpContent.ReadAs(PictureInTextFormat);

So my code looks like previous, but with one line, that I think should not influence on the process image

Everything works like a charm czesazbtzs

Can you explain, what I'm doing wrong? Or is it by design?

JesperSchulz commented 5 years ago

As this is related to the new HttpContent type in the al language, I will transfer your issue to the AL repository :-) Thanks again for reporting! Keep them coming!

kalberes commented 2 years ago

Very old issue and looks like by design.