T
T
TERMIK2012-01-20 12:45:19
Python
TERMIK, 2012-01-20 12:45:19

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

2 answer(s)
A
Anatoly, 2012-01-20
@TERMIK

webpython.codepoint.net/cgi_file_upload
code.activestate.com/recipes/146306-http-client-to-post-using-multipartform-data/

T
TERMIK, 2012-01-20
@TERMIK

webpython.codepoint.net/cgi_file_upload

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question