Reference

Endpoint Download a file


Name

download_file

Description

Downloads a file

Parameters

Parameter Required Options
Name: SourceFilePath

Label: SourceFilePath

YES

Output Columns

Label Data Type (SSIS) Data Type (SQL) Length Description
Status DT_WSTR nvarchar(4000) 4000
If the column you are looking for is missing, consider customizing DropBox Connector.

Input Columns

Label Data Type (SSIS) Data Type (SQL) Length Description
There are no Static columns defined for this endpoint. This endpoint detects columns dynamically at runtime.

Examples

SSIS

Use DropBox Connector in API Source or in API Destination SSIS Data Flow components to read or write data.

API Source

API Source - DropBox
Read / write DropBox data inside your app; perform many DropBox operations without coding, just use easy to use high performance API Connector for DropBox
DropBox
Download a file
Required Parameters
SourceFilePath Fill-in the parameter...
SaveContentAsBinary Fill-in the parameter...
FileOverwriteMode Fill-in the parameter...
ResponseDataFile Fill-in the parameter...
Optional Parameters
RequestTimeoutMs 7200000
RawOutputDataRowTemplate {Status:'Downloaded'}
EnableRawOutputModeSingleRow True
SSIS API Source - Read from table or endpoint

API Destination

API Destination - DropBox
Read / write DropBox data inside your app; perform many DropBox operations without coding, just use easy to use high performance API Connector for DropBox
DropBox
Download a file
Required Parameters
SourceFilePath Fill-in the parameter...
SaveContentAsBinary Fill-in the parameter...
FileOverwriteMode Fill-in the parameter...
ResponseDataFile Fill-in the parameter...
Optional Parameters
RequestTimeoutMs 7200000
RawOutputDataRowTemplate {Status:'Downloaded'}
EnableRawOutputModeSingleRow True
SSIS API Destination - Access table or endpoint

ODBC application

Use these SQL queries in your ODBC application data source:

Download file

Downloads a file

SELECT *
  FROM download_file
  WITH (SourceFilePath='/file-I-want-to-download.dat'
        ,ResponseDataFile='C:\path\I\want\to\save\my\file\to.dat'
      )

SQL Server

Use these SQL queries in SQL Server after you create a data source in Data Gateway:

Download file

Downloads a file

DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT *
  FROM download_file
  WITH (SourceFilePath=''/file-I-want-to-download.dat''
        ,ResponseDataFile=''C:\path\I\want\to\save\my\file\to.dat''
      )';

EXEC (@MyQuery) AT [LS_TO_DROPBOX_IN_GATEWAY];