On 2010/10/29 4:04 PM, Marvin Radding wrote:
Thanks to Barbara and Scott for their help so far.

Sorry to say, I am still having problems with the definition of
toByteArray.

d InputStream s o class(*JAVA
d :'java.io.FileInputStream')

D toByteArray...
D pr 3i 0 dim(4096)
> ...
d xFileInputStream...
d like(inputstream)

Marvin, I'm not familiar with this method, but googling for
org.apache.poi.util.IOUtils toByteArray
it looks like the Java signature for the method is this:
static byte[] toByteArray(java.io.InputStream stream)

Your prototype is saying that the parameter is a java.io.FileInputStream.

You have to code the RPG prototype according to the Java signature, not necessarily according to the parameter you are passing.

So you can create your object as a java.io.FileInputStream, but you have to prototype the method parameter with class java.io.InputStream. Java will understand that a FileInputStream object is valid to be passed when an InputStream is expected.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.