Skip to content
Advertisement

Image Blob not adding to the mySQL Database

So I tried so many times and tried changing things and still not working, It still add and throw null here’s the code of the HTML, PHP and also JS (just incase needed). I already tried to do some of the methods on github and stack overflow and still doesn’t work. I hope someone can help me with this issue I really appreciate it thank you

enter image description here

enter image description here

JavaScript
JavaScript
JavaScript

Advertisement

Answer

try this : get the $_FILE variable without base64encode function ( you have to use it when you take it from your database )

JavaScript

Surprised that there is no sql error !? it seems to me that it should be like this :

JavaScript

you must assign the value of user_avatar only during the execute statment

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement