JDBC Driver for Gmail

Build 25.0.9434

DownloadAttachments

Downloads attachments of an email.

Input

Name Type Required Accepts Output Streams Description
MessageId String True False The ID of the email.
DownloadLocation String False False The location where the attachments will be saved.
FileStream String False True An instance of an output stream where file data is written to.
AttachmentId String False False The X-Attachment-Id of the message part header. Needs to be specified when using the FileStream input.

Result Set Columns

Name Type Description
Success String Shows if the download was successful.
MessageId String The ID of the email.
AttachmentId String The X-Attachment-Id of the message part header.
Size String The size of the attachment.
Data String The base64 encoded content of the attachment.
Filename String The name of the attachment file.

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