# How to load image from Mysql to Django Template

**URL:** <https://forum.djangoproject.com/t/how-to-load-image-from-mysql-to-django-template/4382>\
**Category:** Using Django\
**Created:** [September 17, 2020, 4:36am UTC](https://forum.djangoproject.com/t/how-to-load-image-from-mysql-to-django-template/4382 "2020-09-17T04:36:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![GaneshPedini](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/ganeshpedini/32/2083_2.png) [@GaneshPedini](https://forum.djangoproject.com/u/GaneshPedini)\
**Post date:** [September 17, 2020, 4:36am UTC](https://forum.djangoproject.com/t/how-to-load-image-from-mysql-to-django-template/4382/1 "2020-09-17T04:36:17Z")

</div>

Hello Django Exports!

I am new to Django. I want to display an image file that is stored in MySQl DB in the Django application.

Is this possible. If so could anyone please help me with the steps. Any link would be helpful for the clarification.

Thanks in Advance!

---

<div class="post-metadata">

**Author:** ![megaleunam](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/megaleunam/32/5289_2.png) [@megaleunam](https://forum.djangoproject.com/u/megaleunam)\
**Post date:** [July 27, 2021, 3:49am UTC](https://forum.djangoproject.com/t/how-to-load-image-from-mysql-to-django-template/4382/2 "2021-07-27T03:49:12Z")

</div>

hello, did you find the solution? generally when an image is saved in the database it is the url of the file. if not, I suppose that the image is saved with some type of encoding such as base 64bits.

this may interest you:

[https://docs.djangoproject.com/en/3.2/topics/files/](https://docs.djangoproject.com/en/3.2/topics/files/)
