The content you're reading is getting on in years
This post is on the older side and its content may be out of date.
Be sure to visit our blogs homepage for our latest news, updates and information.
sender, EventArgs e)
fileFullPath, Stream stream)
(stream.Length == 0)
// Create a FileStream object to write a stream to a file
(FileStream fileStream = System.IO.File.Create(fileFullPath, (
// Fill the bytes array with the stream data
 bytesInStream =
stream.Read(bytesInStream, 0, (
// Use FileStream object to write to the specified file
fileStream.Write(bytesInStream, 0, bytesInStream.Length);
LibrariesManager librariesManager = LibrariesManager.GetManager();
Document document = librariesManager.GetDocuments().Where(d => d.Title ==
filepathh = Path.Combine(Server.MapPath(
), document.Title +
Stream stream = librariesManager.Download(document.Id);
View all posts from Stefani Tacheva on the Progress blog. Connect with us about all things application development and deployment, data integration and digital business.
Subscribe to get all the news, info and tutorials you need to build better business apps and sites
Copyright © 2019 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.
Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.