You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Need to use file as a parameter in groovy scripts

in Sales 1 comment

Summary: Need to use a file as a parameter in groovy script and send it in the form of multipart-form-data to the WebService.


Content (please ensure you mask any confidential information):

I have to send a file along with other parameters from js to Groovy Object function. then for the corresponding WebService I have to send the payload as multipart-form-data which includes this file. So how can i pass the file from js to groovy as a parameter. And how to send the payload as multipart-form-data to the WebService.

Version (include the version you are using, if applicable):



Code Snippet (add any code snippets that support your topic, if applicable):

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!