# wav files are not getting uploaded into the BLOB

**URL:** <https://forums.percona.com/t/wav-files-are-not-getting-uploaded-into-the-blob/1843>\
**Category:** Other MySQL® Questions\
**Created:** [July 10, 2012, 4:42am UTC](https://forums.percona.com/t/wav-files-are-not-getting-uploaded-into-the-blob/1843 "2012-07-10T04:42:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![zozo6015](https://avatars.discourse-cdn.com/v4/letter/z/57b2e6/32.png) [@zozo6015](https://forums.percona.com/u/zozo6015)\
**Post date:** [July 10, 2012, 4:42am UTC](https://forums.percona.com/t/wav-files-are-not-getting-uploaded-into-the-blob/1843/1 "2012-07-10T04:42:09Z")

</div>

Hello

We have an application where we register some audio files which we want to be uploaded into the database.  
We are running a database query to upload the file into the db, but however everything seams to be fine but we after we query the db for the results it always shows NULL.

the column where we want to store the wav file has MEDIUMBLOB type

Please provide any suggestion to be able to fix this issue.

thanks

---

<div class="post-metadata">

**Author:** ![gmouse](https://avatars.discourse-cdn.com/v4/letter/g/b9e5f3/32.png) [@gmouse](https://forums.percona.com/u/gmouse)\
**Post date:** [July 10, 2012, 6:14am UTC](https://forums.percona.com/t/wav-files-are-not-getting-uploaded-into-the-blob/1843/2 "2012-07-10T06:14:52Z")

</div>

do you commit the transaction?

---

<div class="post-metadata">

**Author:** ![zozo6015](https://avatars.discourse-cdn.com/v4/letter/z/57b2e6/32.png) [@zozo6015](https://forums.percona.com/u/zozo6015)\
**Post date:** [July 10, 2012, 7:47am UTC](https://forums.percona.com/t/wav-files-are-not-getting-uploaded-into-the-blob/1843/3 "2012-07-10T07:47:25Z")

</div>

I am not sure. How can I make sure that I commit the transaction?

---

<div class="post-metadata">

**Author:** ![vikaskumar2020](https://avatars.discourse-cdn.com/v4/letter/v/4bbf92/32.png) [@vikaskumar2020](https://forums.percona.com/u/vikaskumar2020)\
**Post date:** [July 10, 2012, 10:22am UTC](https://forums.percona.com/t/wav-files-are-not-getting-uploaded-into-the-blob/1843/4 "2012-07-10T10:22:48Z")

</div>

Hi,

As we are can read the sound file from php file read, can we put that content into database and will it put file into database.

Thanks  
Vikas Kumar
