EzFlowEzFlow Docs
Node referenceFiles & PDF

BASE64_TO_ATTACHMENT

BASE64_TO_ATTACHMENT node.

What it does

BASE64_TO_ATTACHMENT node.

Inputs & outputs

Input handle
None
Output handle
None

Configuration

No configuration.

Example

How it works

BASE64_TO_ATTACHMENT converts a raw base64 string into an email-ready attachment object. Wire in the base64 content and a fileName, set the contentType (the MIME type, e.g. application/pdf), and the node emits an attachments array you can hand straight to a mail node. It is the glue between PDF/file nodes and SEND_MAIL.

Example

Scenario: Email a freshly generated invoice PDF as an attachment.

  1. A PDF_GENERATOR node renders the invoice and outputs base64.
  2. Add a BASE64_TO_ATTACHMENT node. Wire base64 in, set fileName to invoice.pdf and contentType to application/pdf.
  3. Connect the attachments output to a SEND_MAIL node's attachments input.
PDF_GENERATOR ──(base64)──► BASE64_TO_ATTACHMENT ──(attachments)──► SEND_MAIL

On this page