简体   繁体   中英

Sending an image from server to client (Python+Java)

I wrote a code few days ago that enables the client (on Java) to send an image to the server(on Python) and save it as a blob format in mysql. How can I do this in reverse? How can I send a picture from the server on python to the client on java ( with socket , for example ?)

You cannot send picture from the server. You can write a client which will retrieve picture from the server. SimpleHTTPserver in Python can answer the url with image. Reading Image with Java is even more easier. Use url what python provides and save it with Java.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM