I have a remote database with MySQL, and I am storing photos of the users of my app on the database as a row of the database with LONGTEXT type.
I transform the phot
Why not dump your image as a file on the server and return the url of the written file in your json? This is really how you should do what you want to do since http is the protocol you should use for transfering images over the web.
Code similar to this should do what you want on the server
//code to get your row from database
//Code that writes it to a file.
$Data = $row['myblobfield'];
$fp = fopen('myimgname.jpg', 'w');
fwrite($fp, $Data);
fclose($fp);
This will write your blob or longtext fields as a file on your server which you can then download from your mobile app. You can then delete this temp files after an interval.
Hope this is useful