stream = csvFile.getStream(); stream.Position = 0; if(ledgerParametersLoc.TOBDerivativeAzureBlobAccountKey && ledgerParametersLoc.TOBDerivativeAzureBlobAccountName && ledgerParametersLoc.TOBDerivativAzureBlobContainerName) { CO_FileUploader::dropFileOnAzureBlobStorage(stream,ledgerParametersLoc.TOBDerivativeAzureBlobAccountName,ledgerParametersLoc.TOBDerivativeAzureBlobAccountKey, ledgerParametersLoc.TOBDerivativAzureBlobContainerName, filename); reader = new System.IO.StreamReader(stream); csvFileContent = reader.ReadToEnd(); File::SendStringAsFileToUser(csvFileContent, filename);