---
title: "Discussion on \"How to Return Binary Content with AWS API Gateway and Lambda\" | Hashnode"
description: "Discussion on \"How to Return Binary Content with AWS API Gateway and Lambda\". If you've ever tried returning an image or a PDF from a Lambda function through API Gateway, you've probably hit a wall. Maybe the browser downloads a corrupt file, or your API returns a string of unreadable characters. I’ve been there, and the fix w..."
url: "https://hashnode.com/posts/how-to-return-binary-content-with-aws-api-gateway-and-lambda/683c6fd4518891fef16e38d7"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to Return Binary Content with AWS API Gateway and Lambda](https://codewithrenato.com/how-to-return-binary-content-with-aws-api-gateway-and-lambda?utm_source=hashnode&utm_medium=feed)

If you've ever tried returning an image or a PDF from a Lambda function through API Gateway, you've probably hit a wall. Maybe the browser downloads a corrupt file, or your API returns a string of unreadable characters. I’ve been there, and the fix w...

Jun 1, 2025 · 3 min read · codewithrenato.com  
Read the article

-   [#aws](https://hashnode.com/tag/aws)
-   [#aws-lambda](https://hashnode.com/tag/aws-lambda)
-   [#python](https://hashnode.com/tag/python)
-   [#google-api](https://hashnode.com/tag/google-api)

## Written by

[Renato Ramos Nascimento](https://hashnode.com/@renato04)

@renato04 · São Paulo / Brazil

  
[View profile](https://hashnode.com/@renato04)

Software Engineer

With over 14 years in software development, I specialize in backend systems using .NET, Python, and Java. I bring full lifecycle expertise, including requirements analysis, client/server and data layer development, automated testing (unit, integration, end-to-end), and CI/CD implementations using Docker, GitLab Pipelines, GitHub Actions, Terraform, and AWS CodeStar.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
