I am tryingto download a file from the server ,I dont know why i m getting the following error

localFile = open(localFileName, 'wb')
TypeError: coercing to Unicode: need string or buffer, type found

Any clues..?

Thanks

Hm. The only thing I can think of is that your LocalFileName is not valid ASCII.

Jeff

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.