A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Frameworks
»
Struts
Author
Converting FormFile to a Zip in Action class[struts1.2]
Seetharaman Venkatasamy
Ranch Hand
Joined: Jan 28, 2008
Posts: 5575
I like...
posted
Jun 06, 2009 00:56:46
0
FormFile sessionFile = sessionFileUploadForm.getSessionFile();//Here sessionFileUploadForm is a ActionForm InputStream iStream = sessionFile.getInputStream();
i uploading a file from jsp and getting the inputstream on action class. now my question is how can i convert it into a zip file . i tried but failed
. please tell me the way
David Newton
Author
Rancher
Joined: Sep 29, 2008
Posts: 12617
I like...
posted
Jun 06, 2009 01:03:58
0
Not really a Struts question. I'd probably just try java.util.zip first.
Seetharaman Venkatasamy
Ranch Hand
Joined: Jan 28, 2008
Posts: 5575
I like...
posted
Jun 06, 2009 03:16:06
0
Sorry David. My team leader told the way to do that
. Thanks
I agree. Here's the link:
http://ej-technologies/jprofiler
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: Converting FormFile to a Zip in Action class[struts1.2]
Similar Threads
can't use reset on input stream?
Struts 1.1 upload multiple files with multiple input elements
File upload in struts
File upload in struts
Image saving size reduction
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter