SSIS Components for Twilio

Build 26.0.9770

DownloadMedia

Downloads a media file attached to a Twilio message. Returns the file content as Base64, writes it to a local path, or streams it to an output stream.

Stored Procedure-Specific Information

Downloads a media file attached to a Twilio message. To run this procedure, you must specify MessageSid and MediaSid.

By default, the procedure returns the file content as Base64 in the FileData output column. Specify LocalPath to write the file to disk instead, or use FileStream to stream the file data to an output stream. The following example returns the media file as Base64:

EXEC DownloadMedia MessageSid = 'MM5246efb7f153081c77630d6351e3d36f', MediaSid = 'MEf8e6341f75a8a24e56b73ffe50a5985a'
The following example writes the media file to a specific file path:
EXEC DownloadMedia MessageSid = 'MM5246efb7f153081c77630d6351e3d36f', MediaSid = 'MEf8e6341f75a8a24e56b73ffe50a5985a', LocalPath = 'C:/media/image.png'

Input

Name Type Required Description
MessageSid String True The SID of the message containing the media.
MediaSid String True The SID of the media file to download.
LocalPath String False The local path to write the downloaded file to. Specify a full file path to write to an exact location. If not specified, the file data is returned as Base64.

Result Set Columns

Name Type Description
FileData String The Base64-encoded file content. Populated when LocalPath and FileStream are not provided.
Status String Stored Procedure Execution Status

Copyright (c) 2026 CData Software, Inc. - All rights reserved.
Build 26.0.9770