Hi, i have a webService method that creates a Excel file and use to work fine in my server, im moving to Windows Azure Storage and it is creating the file correctly, it creates the file with data (Size is not 0bytes) but when i try to open it the file is empty
I tried too many combinations if i use UploadFromStream the file is created empty.
MemoryStream stram = new MemoryStream();
workbook.SaveToStream(stram,Spire.Xls.FileFormat.Version97to2003);
blob.UploadFromStream(stram);
Mi function is this:
MemoryStream stram = new MemoryStream();
workbook.SaveToStream(stram,Spire.Xls.FileFormat.Version97to2003);
byte[] buffer = new byte[(int)stram.Length];
stram.Read(buffer, 0, (int)stram.Length);
CloudBlob blob = blobContainer.GetBlobReference(filename);
blob.UploadByteArray(buffer);