Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3.4k views
in .NET FTP by (280 points)
I am downloading a 250 meg file thru ftp.
The program keeps on allocating memory before writing any thing out


ftpConnection.TransferBufferSize=24096;// TransferBufferSize
ftpConnection.DownloadFile(LocFilename,RemoteFileName);

But if I transfer as binary there is no issues.

What can I do to prevent it

4 Answers

0 votes
by (162k points)
I'm not entirely sure what you mean by the above post. Is there a problem in ASCII mode? Is it an ASCII file?
0 votes
by (280 points)
Problem is in the ascci mode ... the whole file gts read into the memory
ifi use binary all works well
0 votes
by (162k points)
You might be trying to transfer a binary file in ASCII mode.

We use the ReadLine() method to read a line at a time from ASCII files. I suppose if there are no line terminators in the binary file it might do this.

But why would you want to transfer a binary file in ASCII mode? ASCII is for text files.
0 votes
by (280 points)
thanks.... that could be the issue

Categories

...