Re: Passing file to .net web service

2010-10-19 Thread timc3
Well are you doing that in a page request? Is it timing out? Also if you are doing this with large files its going to eat memory and processing power like you couldn't believe. I would hand this off to another service or daemon, or in my case Celery to do the work. On Oct 19, 10:58 am, Pradnya

Passing file to .net web service

2010-10-19 Thread Pradnya
Hello I am using Django 1.1 and Python 2.6 I want to pass file ot file byte array to a web serrvice which is written in .net, so I am using import urllib2 import urllib2_file data = [ ('fileName' , 'test.txt'), ('file', open'/tmp/test.text', 'r') ] data=urllib.urlencode(data)