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
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!
Hi Team. I'm integrating my app with customVision.ai service.
The api is quite simple
So I'm using
HttpContent.WriteFrom(PictureInStream);
If the code looks like that
i receive an error from web service
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
Everything works like a charm
Can you explain, what I'm doing wrong? Or is it by design?