You might want to download files to a local system from a library item and then make changes to the files before you use them.

Procedure

  1. Create a download session model to specify the item, which contains the file that you want to download.
  2. Access the File service and retrieve the file that you want to export to your system within the new download session.
  3. Prepare the files that you want to download and wait until the files are in the prepared state.
  4. Retrieve the download endpoint URI of the files.
  5. Download the files with an HTTP GET request.
  6. Delete the download session after all files are downloaded.