ile("myFile.pdf");
>
> InputStream inputStream = *new* FileInputStream(inputFile);
>
> *byte*[] fileBytes = IOUtils.*readBytesFromStream*(inputStream);
>
>
>
> PDFUploadRequest uploadRequest = *new* PDFUploadRequest();
>
> uploadR
ache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
>at java.lang.Thread.run(Thread.java:619)
> Caused by: javax.xml.bind.UnmarshalException: Unable to create an instance
> of java.io.InputStream
> - with linked exception:
>
> Am I missing something here..
&
27;sberyoz...@gmail.com'
Cc: Pydipati, Karuna
Subject: RE: Looking for samples on sending binary files in a REST service
using Base64 encoding..
Hi Sergey,
Thanks for a prompt response. I tried using that but I am seeing this exception
now:
Sep 22, 2010 1:08:10 PM org.apache.cxf.jaxrs.client.
om: Sergey Beryozkin [mailto:sberyoz...@gmail.com]
Sent: Friday, September 17, 2010 11:31 AM
To: users@cxf.apache.org
Subject: Re: Looking for samples on sending binary files in a REST service
using Base64 encoding..
Hi
It appears you'd actually like to have JAXB based XOP support on the ser
out.write(buf,0,len);
>}
>out.close();
> log.info("Succesfully created a file " +
> fileName);
>
> } catch(Exception e) {
> log.error("
Hi
It appears you'd actually like to have JAXB based XOP support on the server
side.
So have a @MediaType(multipart/related) on the server side as well as set a
contextual property "mtom.enabled" in jaxrs:server, and here's a test
showing how to sent it all it on the client side :
@Test
publi
Hi,
We have a requirement in out project to create a REST service with custom
request object and sending pdf attachment[s) as a property in that custom
request entity. Are there any existing samples around this?
As of now, I am using multipartbody to get list of attachments and
specifical