Cmdlets for Avro

Build 25.0.9434

UploadFile

Upload file to destination.

Procedure-Specific Information

The DestinationPath input accepts paths relative to the URI provided in the connection string.

If URI is set to: gs://test-bucket/folder2 and DestinationPath='file1.txt', the file will be uploaded to /folder2/file1.txt.

The procedure is executed as below:

    EXEC UploadFile LocalPath='C:/temp/test.txt',  DestinationPath='/hello-cdata.txt'
    EXEC UploadFile InputData='eGN2eGN2eGN2eHp6IGRzZmFzZGZkZmc=',  DestinationPath='CData/hello-cdata.txt'

Input

Name Type Required Description
DestinationPath String True The full path where the file should be uploaded to. Relative to the path provided in the URI connection property.
LocalPath String False The path of the local file to upload.
InputData String False Base64 string representation of the file content. Only used if LocalPath and InputStream are not set.

Result Set Columns

Name Type Description
Success Bool Boolean indicating if the procedure was executed successfully. If false, the output parameter 'Details' will contain the failure details.
Details String Details of execution failure. NULL if success=true.

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