commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "andrew ox." <andrew.oxenbu...@gmail.com>
Subject Re: [net-ftp]Received file is short...
Date Wed, 04 Jun 2008 23:44:55 GMT
Could you provide a short program or fragment to demonstrate the problem.

Perhaps in a JUnit test?

2008/6/4 Nation, Carey <Carey.Nation@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 <mailto:carey.nation@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


Mime
View raw message