I
I
Ivan Melnikov2018-04-23 16:04:27
MySQL
Ivan Melnikov, 2018-04-23 16:04:27

How to download an image to the file system on the local computer from a BLOB field of a remote MySQL server?

I can connect to a remote MySQL server using Workbench with a username and password.
The database has a Photo table, and it has an img BLOB field. How to download a picture from this field to the file system of the local computer?
If the MySQL server is installed on the local computer, then you can save the image to a file using the query:

SELECT img FROM Photo where id=5 INTO DUMPFILE '<filename>';

But what if the MySQL server is remote?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Musin, 2018-04-23
@vmpartner

I'm not sure, but it seems that the client cannot do this through the MySQL GUI.
Take a dump and download pictures on your local computer.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question