This repository has been archived by the owner on Jul 2, 2023. It is now read-only.
forked from krasserm/grails-jaxrs
-
Notifications
You must be signed in to change notification settings - Fork 9
Multipart Form Data #21
Comments
From @slackfarmer on February 28, 2015 0:7 I figured out how to do it, by using an apache library(MultipartEntityBuilder) to compose the multipart body. Added apache mime dependency
Body Building Code Samplereturns end point and a byte array
Spock Test ExampleNotice content type settings: ['Content-Type': 'multipart/form-data; boundary=fnord']
|
From @marciomalewschik on August 11, 2015 2:28 Hello slackfarmer, Could you please help me sharing how you did your resource to accept a MultipartFile. I'm using this plugin in this verison: But until now I couldn't send a file to my resource. In advance I thank you. |
From @prabhatsubedi on December 9, 2015 5:51 hello @marciomalewschik I am too facing same problem. Did you find solution ? |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
From @slackfarmer on February 27, 2015 21:8
I was curious how one might go about creating an IntegrationTestSpec that would compose a multipartFormData request? Does anyone have an example of how to build up a multipart form object and convert it to bytes using this existing jaxrs framework?
Currently send request will only accept bytes as input
IntegrationTestSpec.groovy....
Jersey Client Example - how I might test multipart form using jersey client
Copied from original issue: krasserm#61
The text was updated successfully, but these errors were encountered: