Hi,
Greetings!
I am getting a System.IO.Stream object stored in Azure storage and in another method I have uploaded it to another location, which means the file get works fine.
Now I have to send a base64Encode of BinData object. I tried the following code but it fails at Binary binaryStream = Binary::constructFromMemoryStream(stream);
System.IO.Stream stream = //get file stream;
if(stream.CanSeek)
{
stream.Seek(0, System.IO.SeekOrigin::Begin);
}
Binary binaryStream = Binary::constructFromMemoryStream(stream);
binData = new BinData();
container conBinData = binaryStream.getContainer();
binData.setData(conBinData);
container data = [binData.base64Encode()];
With best regards,
Abhinay