/Knowledge/sources/honojs__hono/llms-full/aws-lambda-serve-binary-data--21d5a7a7375f.md
AWS Lambda: Serve Binary data - hono-docs
AWS Lambda: Serve Binary data Source evidence: /Sources/honojs hono/provenance.md Canonical citation: https://hono.dev/llms full.txt serve binary data Summar...
AWS Lambda: Serve Binary data
Source evidence: /Sources/honojs__hono/provenance.md Canonical citation: https://hono.dev/llms-full.txt#serve-binary-data
Summary
Hono supports binary data as a response. In Lambda, base64 encoding is required to return binary data. Once binary type is set to Content-Type header, Hono automatically encodes data to base64. ```ts app.get('/binary', async (c) => { /...
Content
Hono supports binary data as a response.
In Lambda, base64 encoding is required to return binary data.
Once binary type is set to Content-Type header, Hono automatically encodes data to base64.
app.get('/binary', async (c) => {
// ...
c.status(200)
c.header('Content-Type', 'image/png') // means binary data
return c.body(buffer) // supports `ArrayBufferLike` type, encoded to base64.
})
Metadata
{
"chunk_index": 0,
"citation": "https://hono.dev/llms-full.txt#serve-binary-data",
"coverage_role": "overview",
"qualified_title": "Hono / llms-full / AWS Lambda > Serve Binary data",
"retrieved_at": "2026-07-02T05:51:01Z",
"section_index": 424,
"source_id": "/honojs/hono",
"source_type": "llms_full",
"target_label": "llms-full",
"title": "AWS Lambda: Serve Binary data",
"upstream_url": "https://hono.dev/llms-full.txt",
"version": "2026"
}