Move Image from one DB to another MySQL with PHP : I need to move an image (blob field) from a MySQL database to another that are located on two different servers.

I tried to get blob field from the first database and I tried to upload the second, but something went wrong (no errors showing, btw).

```php
/* SERVER #1 */
/* connection to server1... */

$sql_u="SELECT PHOTO, PHOTO_NAME FROM database1 WHERE ID='1'";
$query_u = mysqli_query($conn, $sql_u);

		
$record_u = mysqli_fetch_array($query_u);
$photo = $record_u['PHOTO'];
$photo_name = $record_u['PHOTO_NAME'];



/* SERVER #2 */
/* connection to server2... */

$sql_i = "UPDATE database2 SET PHOTO = '$photo', PHOTO_NAME = '$photo_name' WHERE ID='1'";
$query_i = mysqli_query($conn, $sql_i);

```


I need to update the second database with the BLOB field of the first one. I tried to use base64_encode() but still not work. I think I have to handle the BLOB field in some way, but I don't know how.

PHOTO : BLOB TYPE
PHOTO_NAME : VARCHAR TYPE