---
title: "Discussion on \"How to save Base64 encoded image to Django ImageField?\" | Hashnode"
description: "Discussion on \"How to save Base64 encoded image to Django ImageField?\". I had to create an API that had to accept an image in Base64 encoded format and save it to Django image field, which requires an image file. So today I learned how to do this.\nStep 1: B64 to PIL\nThe first step will be to convert this B64 image to an ..."
url: "https://hashnode.com/posts/how-to-save-base64-encoded-image-to-django-imagefield/67c6b0425796a3f8ae4912a8"
---

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

Discussion

# [How to save Base64 encoded image to Django ImageField?](https://tanseersaji.com/how-to-save-base64-encoded-image-to-django-imagefield?utm_source=hashnode&utm_medium=feed)

I had to create an API that had to accept an image in Base64 encoded format and save it to Django image field, which requires an image file. So today I learned how to do this. Step 1: B64 to PIL The first step will be to convert this B64 image to an ...

Jul 7, 2020 · 2 min read · tanseersaji.com  
Read the article

## Written by

[Tanseer Saji](https://hashnode.com/@tanseer719)

@tanseer719

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
