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);
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);
}
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,219 Super User 2024 Season 2
Martin Dráb 230,056 Most Valuable Professional
nmaenpaa 101,156