File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes alternative for FileCopyUtils of spring in struts 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 » Frameworks » Struts
Bookmark "alternative for FileCopyUtils of spring in struts" Watch "alternative for FileCopyUtils of spring in struts" New topic
Author

alternative for FileCopyUtils of spring in struts

subham ja
Greenhorn

Joined: Oct 06, 2013
Posts: 1
I have to use this type of method{copy(byte[] in, OutputStream out) } in my struts program..
But i am unable to find the solution of it..
please help me in this.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29220
    
135

Welcome to CodeRanch!

Looking at the ,%20java.io.OutputStream)]JavaDoc, that method looks like it could be written in two lines:


And a few more lines if you need to handle the exception from close.

Then I looked at the implementation. They have some valdiations and add a buffered writer. But there isn't much to it there either.

[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: alternative for FileCopyUtils of spring in struts
 
Similar Threads
Struts selection
Login Form
retrive data from oracle database using struts
Session handling in struts.
how to create tablespace in java dbms