You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by "Nation, Carey" <Ca...@turner.com> on 2008/06/04 19:01:00 UTC
[net-ftp]Received file is short...
I'm using FTPClient to get a file from a server using receiveFile. No
amount of closing the stream, flushing the stream, disconnecting the
server, or dancing a jig seems to make the entire file come down. It's
about 40k short, which sure smells like a block short to me. My finally
block looks like:
Finally
{
Stream.close();
Client.disconnect();
}
Sorry for the caps, Outlook is trying to "help."
The stream is a FileOutputStream. What am I missing?
Thanks!
________________________________
Carey Nation <ma...@cnn.com>
Lead Software Engineer
CNN BEST
Broadcast Production Systems
Video Solutions Group
(404)827-2935 (wk)
(404)824-0033 (cell)
________________________________
Re: [net-ftp]Received file is short...
Posted by "andrew ox." <an...@gmail.com>.
Could you provide a short program or fragment to demonstrate the problem.
Perhaps in a JUnit test?
2008/6/4 Nation, Carey <Ca...@turner.com>:
> I'm using FTPClient to get a file from a server using receiveFile. No
> amount of closing the stream, flushing the stream, disconnecting the
> server, or dancing a jig seems to make the entire file come down. It's
> about 40k short, which sure smells like a block short to me. My finally
> block looks like:
>
>
>
> Finally
>
> {
>
> Stream.close();
>
> Client.disconnect();
>
> }
>
>
>
> Sorry for the caps, Outlook is trying to "help."
>
>
>
> The stream is a FileOutputStream. What am I missing?
>
>
>
> Thanks!
>
> ________________________________
>
> Carey Nation <ma...@cnn.com>
>
> Lead Software Engineer
>
> CNN BEST
>
> Broadcast Production Systems
>
> Video Solutions Group
>
> (404)827-2935 (wk)
>
> (404)824-0033 (cell)
>
> ________________________________
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org