streamIO.write(xmlDoc); XX_VendPaymIntegrationHelper::uploadToBlob(parameters.BlobStorageConnectionString, parameters.BlobStorageContainer, parameters.BlobStorageOutboundFolder, fileName, streamIO,xmlDoc);
public static void uploadToBlob(HS_VendPaymIntBlobStorageConnectionString _connectionString, HS_VendPaymIntBlobStorageContainer _container, HS_VendPaymBlobStorageOutboundFolder _folder, Filename _filename, CommaTextStreamIo _streamIO, XMLDocument _xmlDoc ) { try { CloudStorageAccount storageAccount = Microsoft.WindowsAzure.Storage.CloudStorageAccount::Parse(_connectionString); CloudBlobClient blobClient = storageAccount.CreateCloudBlobClient(); CloudBlobContainer blobContainer = blobClient.GetContainerReference(_container); //blobContainer.CreateIfNotExists(null, null); //create blob container Filename fullName = _folder ? _folder + "/" + _filename : _filename; CloudBlockBlob destBlob = blobContainer.GetBlockBlobReference(fullName); System.IO.MemoryStream memstream = _streamIO.getstream(); destBlob.UploadFromStream(memstream, null, null, null); } catch { throw error("Blob error"); } }
public static void uploadToBlob(HS_VendPaymIntBlobStorageConnectionString _connectionString, HS_VendPaymIntBlobStorageContainer _container, HS_VendPaymBlobStorageOutboundFolder _folder, Filename _filename,, xmldocument _xmlDoc ) { try { CloudStorageAccount storageAccount = Microsoft.WindowsAzure.Storage.CloudStorageAccount::Parse(_connectionString); CloudBlobClient blobClient = storageAccount.CreateCloudBlobClient(); CloudBlobContainer blobContainer = blobClient.GetContainerReference(_container); //blobContainer.CreateIfNotExists(null, null); //create blob container Filename fullName = _folder ? _folder + "/" + _filename : _filename; CloudBlockBlob destBlob = blobContainer.GetBlockBlobReference(fullName); System.IO.MemoryStream stream = new System.IO.MemoryStream(); XmlWriter xmlWriter = XmlWriter::newStream(stream); _xmlDoc.writeTo(xmlWriter); xmlWriter.flush(); destBlob.UploadFromStream(stream, null, null, null); } catch { throw error("Blob error"); } }
System.IO.MemoryStream stream = new System.IO.MemoryStream(); XmlWriter xmlWriter = XmlWriter::newStream(stream); xmlDoc.writeTo(xmlWriter); writer.flush();
try { CloudStorageAccount storageAccount = Microsoft.WindowsAzure.Storage.CloudStorageAccount::Parse(_connectionString); CloudBlobClient blobClient = storageAccount.CreateCloudBlobClient(); CloudBlobContainer blobContainer = blobClient.GetContainerReference(_container); //blobContainer.CreateIfNotExists(null, null); //create blob container Filename fullName = _folder ? _folder + "/" + _filename : _filename; CloudBlockBlob destBlob = blobContainer.GetBlockBlobReference(fullName); System.IO.MemoryStream memstream = _streamIO.getstream(); memstream.Position = 0; destBlob.UploadFromStream(memstream, null, null, null); }
streamIO.write(xmlDoc);
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Andrés Arias as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Sohaib Cheema 764 User Group Leader
Martin Dráb 619 Most Valuable Professional
André Arnaud de Cal... 603 Super User 2025 Season 2