HTTPContent data
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?
found workaround