interface AttachmentData {
    content: Uint8Array;
    fileName: string;
}

Properties

Properties

content: Uint8Array

The binary content of this attachment.


You can select a method to handle this content:

// Node.js ≧ v25
attachment.content.toBase64()
// Node.js ≧ v0.1.90
Buffer.from(attachment.content).toString('base64')

fileName: string

A file name of this attachment without directory specification.

SomeOxProps.fileName

e.g.

  • blue.png
  • Microsoft Outlook テスト メッセージ.msg