JDBC Driver for Microsoft SharePoint

Build 22.0.8479

DownloadDocument

SharePoint ライブラリからドキュメントをダウンロードします。

ストアドプロシージャ固有の情報

Insert

RemoteFile はライブラリに応じた相対URL にも、ファイルへの絶対URL にも設定できます。以下は例です。

EXECUTE DownloadDocument File = 'C:/Users/User/Desktop/DownloadedFile.txt', Library = 'Shared Documents', RemoteFile = 'https://mysite.sharepoint.com/Shared Documents/newFolder/FileToDownload.txt';

EXECUTE DownloadDocument File = 'C:/Users/User/Desktop/DownloadedFile.txt', Library = 'Shared Documents', RemoteFile = '/newFolder/FileToDownload.txt';

Input

Name Type Accepts Output Streams Description
File String False 保存されるファイルのパス。新しいファイル名を含める必要があります。例えば、「C:/Users/User/Desktop/DownloadedFile.txt」です。
Library String False SharePoint サーバー上のライブラリの名前。例えば、「共有ドキュメント」です。
RemoteFile String False ライブラリへの相対パスまたはファイルの完全なURL のいずれかを指定できます。
Encoding String False 指定されたエンコーディングでFileData に出力します。

使用できる値は次のとおりです。NONE, BASE64

デフォルト値はBASE64です。

FileStream String True ダウンロードされたドキュメントを書き込むためのOutputStream。File が設定されていない場合のみ返されます。
ReadTimeout String False How many seconds the download may run. If given the download always fails if it runs longer than this, unlike Timeout which only triggers if the download stalls.

Result Set Columns

Name Type Description
Result String 操作が成功したかどうかを示すBoolean 値。
FileData String ダウンロードしたファイルの内容。File およびFileStream が設定されていない場合のみ返されます。

Copyright (c) 2023 CData Software, Inc. - All rights reserved.
Build 22.0.8479