GIS Shape file upload to FTP server

Jean-Paul Calderone exarkun at divmod.com
Thu Mar 1 15:08:39 EST 2007


On Thu, 1 Mar 2007 14:58:11 -0500, "Ahmed, Shakir" <shahmed at sfwmd.gov> wrote:
>HI Group,
>
>As I am very new in python field so this question might be very silly to
>you but if I get any help is highly appreciated.
>
>Problem:
>
>I wrote a python script which is working fine to upload files to the ftp
>server but the problem is it is reducing the actual size after
>transferring. I need to upload a GIS Shape file to the ftp server but
>want to keep the same size and format. Any idea or help is highly
>appreciated.
>
>
> [snip]
>ffile = open('c:/test/wuppnt.shp', 'r')

Perhaps the problem is that you did not open the file in binary mode here?

Jean-Paul



More information about the Python-list mailing list