Answer the question
In order to leave comments, you need to log in
How to accept a picture in Python?
Good day to all.
There was a problem with accepting python files.
I send a request to the Python post script with a picture (or some other file, it doesn't matter). The script accepts the request (I accept through the cgi module). And how can I keep the file that I received? Please tell me what to do?
(if it's not difficult, then write a code that would accept and save the file)
Answer the question
In order to leave comments, you need to log in
webpython.codepoint.net/cgi_file_upload
code.activestate.com/recipes/146306-http-client-to-post-using-multipartform-data/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question