File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Groovy and the fly likes upload files to http post request Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Languages » Groovy
Bookmark "upload files to http post request" Watch "upload files to http post request" New topic
Author

upload files to http post request

Jiten Kothari
Greenhorn

Joined: Apr 08, 2010
Posts: 8
Hi Experts,
I am trying to upload all the files at once through http post request. Previously it passing the document one by one and I need to pass all at once.
this is what I wrote the code so but I am getting error groovy cast exception error which I wrote on comment.
any help will be appreciated.

Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15286
    
    6

You didn't tell us what isn't working but you're making this way to hard on yourself. Check out this blog:

http://blog.robert.freudenreich.eu/grails-handling-multi-file-parameters


GenRocket - A Test Data Generation Platform
Jiten Kothari
Greenhorn

Joined: Apr 08, 2010
Posts: 8
I got the solution to the problem. I wanted to add more then one file to multi part entity and then submit group of files at same time to http post request.
Thanks for the help


here is the solution code

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: upload files to http post request
 
Similar Threads
Print to Image
Multi display Applet
How to open all the downloading douments in browser
file download from JSP
store multiple files in memory instead of disk