I have absolutely no Idea what to do so please help me.
I have a Database Table that contains BLOB for Image, text, numeric fields. I have accomplished to retrieve the data from the Table by sending a request from Javascript to PHP tru AJAX by this steps.
- Create a AJAX request from javascript using POST method . I passed the SQL fom the post method.
- Process the $_POST["SQL"] and retrieve the data from mysql database. Using mysqli_query.
- I use mysqli_fetch_array to convert the result to an associative array.
- I use echo json_encode to have a JSON string as an output then echo it.
My problem starts here since the field that contains the BLOB image has 'null' value while other fields behave perfectly fine.
Take note that I'm not only retrieving the Image field but multiple fields.
I'm new to web development and I am using Javascript( not Jquery ) and PHP.
What should I do?
Thank you in advance!