Get Attachment Raw Content

Retrieves raw binary content of an email attachment from Outlook messages.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/naftiko/microsoft-outlook-sandbox --skill get-attachment-raw-content
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Get Attachment Raw Content
Source: https://github.com/naftiko/microsoft-outlook-sandbox/tree/main/skills/get-attachment-content
Command: npx skills add https://github.com/naftiko/microsoft-outlook-sandbox --skill get-attachment-raw-content

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill allows you to directly download the raw binary content of an email attachment, bypassing the need for base64 decoding and improving efficiency for large files.

Core Features & Use Cases

  • Direct Binary Download: Retrieves attachment content as raw bytes (application/octet-stream).
  • Efficiency: More performant for large attachments compared to base64 encoded content.
  • Use Case: Download a PDF report or an image file attached to an email without any encoding overhead.

Quick Start

Use the get attachment content skill to download the attachment with ID 'AAMkAGI1AAABEgAQAA==' from message 'AAMkAGI1AAAGB1rUAAA=' and save it as 'report.pdf'.

Frequently Asked Questions about Get Attachment Raw Content

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I download raw binary email attachments from Outlook without base64 decoding?

You can download raw binary email attachments from Outlook by retrieving the attachment content directly as application/octet-stream. This method bypasses base64 decoding, returning the raw bytes for efficient handling of files like PDFs or images.

What do I need to retrieve a specific email attachment's binary content?

To retrieve a specific email attachment's binary content, you need the exact message-id and attachment-id. These identifiers allow you to target the correct file within Microsoft Outlook and download it directly as raw bytes.

Why should I use raw binary download for large email attachments?

Using raw binary download for large email attachments is more performant because it avoids the overhead of base64 encoding. It retrieves the file content directly as application/octet-stream, making it highly efficient for documents, images, or executables.

Can I download documents and images directly from Microsoft Outlook messages?

Yes, you can download documents and images directly from Microsoft Outlook messages. By targeting the specific message and attachment IDs, the Skill retrieves the file as application/octet-stream, allowing you to save it locally without decoding.

Does retrieving raw attachment bytes work for all file types in Outlook?

Retrieving raw attachment bytes works for various file types in Outlook, including documents, images, and executables. It returns the data as application/octet-stream, ensuring the binary content is downloaded efficiently without format-specific encoding overhead.