# Converting Mysql Binary Data to an Image in php

**URL:** https://forum.kirupa.com/t/converting-mysql-binary-data-to-an-image-in-php/210281
**Category:** programming
**Created:** [December 17, 2006, 5:34am UTC](https://forum.kirupa.com/t/converting-mysql-binary-data-to-an-image-in-php/210281 "2006-12-17T05:34:36Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![troitone](https://avatars.discourse-cdn.com/v4/letter/t/ba8739/32.png) [@troitone](https://forum.kirupa.com/u/troitone)
#### Post date: [December 17, 2006, 5:34am UTC](https://forum.kirupa.com/t/converting-mysql-binary-data-to-an-image-in-php/210281/1 "2006-12-17T05:34:36Z")

</div>

I have a Database with a column named “data”.

In it is a blob that holds binary data that when converted is an image.

How do I get turn that data from the Mysql Blob, binary numbers, into an image?

Seems like an easy enough thing to do, but I can’t find the answer out anywhere.

Thanks!
