JDBC Driver for LinkedIn

Build 25.0.9434

DownloadAsset

Download document, image, and video assets from your LinkedIn organization.

Procedure Specific Information

Note: Requires the r_organization_social OAuth scope.

For document assets, LinkedIn returns the data in PDF format when downloading through this procedure.

Input

Name Type Required Accepts Output Streams Description
URN String True False The URN of the asset that you want to download. Must be one from the following types: 'urn:li:document:', 'urn:li:image:', 'urn:li:video:'.
LocalFile String False False The absolute path of the file in your system to use for downloading the asset.
Overwrite Boolean False False A boolean value indicating whether to overwrite the file in the path provided in the 'LocalFile' parameter if it already exists.

The default value is false.

FileStream String False True An 'OutputStream' object to use for writing the data of the asset being downloaded. Useful when accessing files in your environment ('LocalFile' parameter) is not a viable option.

Result Set Columns

Name Type Description
Success Boolean A boolean value indicating whether the asset was downloaded successfully or not.
FileData String A Base64-encoded string containing the data of the asset downloaded. This will be returned only if both the 'LocalFile' parameter and the 'FileStream' parameter are not specified.

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