[Resteasy-users] Processing multipart/form-data input: input stream truncated after 1024 bytes

2011-05-18 Thread ujay68
Hi, I'm trying to process a file upload with the multipart/form-data facility like this: @POST @Path("/upload") @Consumes(MediaType.MULTIPART_FORM_DATA) public Object upload(MultipartFormDataInput formData) throws IOException { InputPart part = formData.getFormDataMap().get("file").get(0); //

Re: [Resteasy-users] Processing multipart/form-data input: input stream truncated after 1024 bytes

2011-05-18 Thread Bill Burke
Can you try out 2.2-beta-1 please? I think I fixed something in multipart then. Also try not using a DataSource and getting the raw input stream. On 5/18/11 9:36 AM, ujay68 wrote: > Hi, > > I'm trying to process a file upload with the multipart/form-data > facility like this: > > @POST > @Path

Re: [Resteasy-users] Processing multipart/form-data input: input stream truncated after 1024 bytes

2011-05-18 Thread ujay68
Maybe I'm a little closer to an explanation: the org.jboss.resteasy.plugins.providers.DataSourceProvider#readDataSource method