Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Unable to find method: copy(java.io.InputStream,java.io.OutputStream)

MFadelMar 26 2013 — edited Mar 26 2013
Hello,

I'm trying to download a file using this link [tompeez.wordpress.com/tag/affiledownloadactionlistener/].

The code contains a method that copies data from the BLOB to the output stream:

IOUtils.copy(blob.getInputStream(), outputStream);

I'm getting the following compilation: errorError(40,18): cannot find method copy(java.io.InputStream,java.io.OutputStream).

I tried importing many packages, but nothing worked.

Any thoughts?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 23 2013
Added on Mar 26 2013
6 comments
634 views