JDBC Driver for Microsoft Office 365

Build 25.0.9434

DownloadFile

Downloads a specified file from OneDrive or SharePoint.

Input

Name Type Required Accepts Output Streams Description
FileId String True False Identifier of the file to be downloaded.
DownloadTo String False False Full path where the downloaded file is saved. If not specified, the file content is returned as output.
Encoding String False False Encoding format used for the FileData input, such as Base64.

The allowed values are NONE, BASE64.

The default value is BASE64.

FileStream String False True Output stream to which the file data is written. Used only if DownloadTo is not provided.

Result Set Columns

Name Type Description
Status String Indicates whether the stored procedure executed successfully or failed.
FileData String Encoded content of the downloaded file. Returned only if DownloadTo and FileStream are not specified.

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9434