Most of the time, there is a limit on the file size of the file being transferred ( i know that at my work place its 2gig - 1 ). Why not try and just send the file in one go without performing any action to see if its because of this limit? you should be able to use any ftp program to perform this.Check this.else you might have to split the file with some method and reconstruct it on the local machine.
Thanks a lot, but i think i got the solution... like u guys mentioned its the size of the disk thats smaller and couldnt accomodate the file. i tried running the script on a smaller file and it works like a charm.. thanks a lot for the quick response...