users@jersey.java.net

[Jersey] Re: How to post a file and other form fields by Jersey client

From: Pavel Bucek <pavel.bucek_at_oracle.com>
Date: Thu, 23 Jun 2011 02:36:20 +0200

and btw, have you looked at multipart sample? [1]

[1]
http://download.java.net/maven/2/com/sun/jersey/samples/multipart-webapp/1.7/multipart-webapp-1.7-project.zip

On 6/22/11 9:35 PM, Jitesh wrote:
> Ok guyz I changed FormDataMultiPart to something like this
>
> @FormDataParam("sourceLanguage") String sourceLanguage,
> @FormDataParam("uploadFile") InputStream file in method arguments and
> sourceLanguage started coming up fine.
> The InputStream is not null anymore but its size is zero.When I try to read
> it,I do not get anything.Any ideas what is happening?
>
> --
> View this message in context: http://jersey.576304.n2.nabble.com/How-to-post-a-file-and-other-form-fields-by-Jersey-client-tp6502947p6505772.html
> Sent from the Jersey mailing list archive at Nabble.com.
>