cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Decatur <adam.deca...@lexmark.com>
Subject RE: Question - Who closes the InputStream?
Date Mon, 12 Sep 2016 20:46:59 GMT
Yes, I am referring to client-side code.  Cool, so I have get a response
back from the Web service I should go ahead and close the stream?

-----Original Message-----
From: Sergey Beryozkin [mailto:sberyozkin@gmail.com]
Sent: Monday, September 12, 2016 3:41 PM
To: users
Cc: Daniel Kulp
Subject: Re: Question - Who closes the InputStream?

Hi

Thanks for this question, forwarding to the users.
Are you referring to the client side code ? If yes then indeed your code
should close the streams once a call doing the upload returns.

Cheers, Sergey
On 12/09/16 21:31, Adam Decatur wrote:
> Hello,
>
>
> I am developing a Maven JAR in Eclipse that posts a Multipart to a
> rest-based web-service.  The multipart contains 2 or more Attachments.
> The Attachments are being constructed with an InputStream.  Do I need
> to take care of closing these InputStreams? Or does CXF Apache do this for
> me?
>
>
>
> Thank you,
>
>
>
> Adam
>
>
>
> *Adam Decatur*
> Enterprise Software
>
> *O*  +1 913 227 1812**
>
> *M*  +1 330 506 0610**
>
> adam.decatur@lexmark.com <mailto:adam.decatur@lexmark.com>
>
> http://www.lexmark.com/common/images/email/lexmark-logo-email-signatur
> e.png
> <http://www.lexmark.com/>
> www.lexmark.com <http://www.lexmark.com>
>
>
>


--
Sergey Beryozkin

Talend Community Coders
http://coders.talend.com/

Mime
View raw message