1

I'm trying to upload a PDF file for docstoc but I haven't got any luck. I've tried the restclient library for python but I have no idead how to upload/send a binary file lika a PDF. Could you guys provide examples on how to do this? I'd really appreciate it.

joran
  • 169,992
  • 32
  • 429
  • 468
merry
  • 11
  • 1
  • 2

1 Answers1

0

I see that is has been asked before. The idea is treat PDF as another file, but send the file as multipart/form-data. This answer here points you to two recipes which can be used to accomplish this.

Community
  • 1
  • 1
Senthil Kumaran
  • 54,681
  • 14
  • 94
  • 131