On Mon, 2011-04-11 at 10:31 +0800, LongkerDandy wrote:
> Hi
> 
> I noticed the InputStreamEntity.writeTo doesn't close the InputStream when
> writing is done.
> Compare to FileEntity which closed the FileInputStream in final block.
> 
> Does this closed/handled elsewhere? Or I have to handle it myself?
> 
> If I have to close it myself, how do I know when the transfer is completed?
> Example, I can use the FileInputStream with InputStreamEntity:
> 
> InputStream is = new FileInputStream(myFile);
> HttpEntity entity = new InputStreamEntity(is, myFile.size());
> response.setEntity(entity);
> 
> Then how do I close the InputStream properly.
> 
> Thanks
> LongkerDandy


It is clearly a bug. Please raise a JIRA for this issue. 

Oleg


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to