AL icon indicating copy to clipboard operation
AL copied to clipboard

HTTPContent data

Open extensionsv2training opened this issue 7 years ago • 1 comments

Good evening.

I'm developing a solution against Azure Storage Services (Azure Files) as a back-end for Dynamics Business Central file and binary handling.

I've managed to access the REST-api (PUT) for creating user selected binary files to an Azure Blob Container. I'm using HttpContent.WriteFrom(Instream) for creating the data content to be uploaded.

However, for downloading files back to the user, I've run into what looks like insurmountable problems. I get the binary file content over REST as an HTTPContent object, but the HTTPContent has no method to access the data as a stream. Only as text, which is unacceptable.

We would need access to the HTTPContent as a stream, both for writing and reading from it. Is there a workaround for this?

extensionsv2training avatar Feb 09 '19 20:02 extensionsv2training

found workaround

extensionsv2training avatar Feb 09 '19 20:02 extensionsv2training