Python: use requests to read an image (url), then save as BLOB data to MySQL
问题 Suppose I'm using requests to open an image url and read the data, save as BLOB data to MySQL, what is the most efficient way of doing it? I did some search and looks like PIL.Image & StringIO method is recommended, as in this document : http://docs.python-requests.org/en/latest/user/quickstart/#binary-response-content There are some other methods, as mentioned in this question : How do I read image data from a URL in Python? However, I seem to be using a "simpler" way of implementing the