I am trying to upload an image and the postman request is in base64 encoding, however a corrupted image is produced. The code for the upload is:
byte[] byteArray = Encoding.UTF8.GetBytes(image);
MemoryStream stream = new MemoryStream(byteArray);
AddBlobRequest blobRequest = new AddBlobRequest()
{
ContainerName = ContainerName,
SourceFileStream = stream,
BlobName = fileName
};
BlobStorageManager.Instance.AddBlob(blobRequest);