UploadImage
Upload image assets in your LinkedIn organization which can be used to create posts.
Procedure Specific Information
Note: Requires the w_organization_social OAuth scope.To use this stored procedure, exactly one of the following parameters must be specified (besides the ones reported in the table below as Required):
- LocalFile
- FileStream
- FileData
If no parameter is used, or more than one parameter is used, the procedure will fail.
Below are some other restrictions for image assets:
- Only images with a total pixel count (width X height) less than 36,152,320 are allowed.
- The following formats are supported: JPG, PNG, and GIF.
- For the GIF format, up to 250 frames can be used.
Input
| Name | Type | Required | Accepts Input Streams | Description |
| OwnerURN | String | True | False | The URN of the organization to use as the new image's owner. |
| LocalFile | String | False | False | The absolute path of the image file in your system to upload to LinkedIn. |
| FileStream | String | False | True | An 'InputStream' object to use for reading the data of the image to upload to LinkedIn. Useful when accessing files in your environment ('LocalFile' parameter) is not a viable option. |
| FileData | String | False | False | A Base64-encoded string containing the data of the image to upload to LinkedIn. Useful in cases when neither the 'LocalFile' parameter nor the 'FileStream' parameter are viable options. |
Result Set Columns
| Name | Type | Description |
| ImageURN | String | The URN of the new image asset that was created, if the upload was successful. |