Hi Marcus, Thanks a lot. Surely it did help.
Regards Arnab M.C.S. wrote: > > Hi Arnab, > > arnab_ghosh wrote: >> Because I am facing a problem when I am closing the Stream in the finally >> block, an exception is thrown >> "IOException: Trying to read from a closed stream" >> > > you don't need to close the stream yourself. This is already implicied > by the execute() method of StreamingResolution. > > Quotation of its JavaDoc: > "Once the InputStream or Reader signaled the end of the stream, close() > is called on it." > > Manually closing the stream in the finally block will close the stream > almost immediately after the return statement, which leeds to the > IOException. > > Hope that helped, > Marcus > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Stripes-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/stripes-users > > -- View this message in context: http://www.nabble.com/File-Download-in-Stripes-using-HttpClient-tp21558239p21559268.html Sent from the stripes-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Stripes-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/stripes-users
