search for: bytearrayinputstream

Displaying 1 result from an estimated 1 matches for "bytearrayinputstream".

2007 Mar 05
0
File I/O with rjb
...need to convert this into a Java InputStream object in order to use it as an argument to another Java method. I have tried to accomplish this many ways by using the obvious approach ... all without success. For example, - read the contents of the file into a ruby string, then try to create a java ByteArrayInputStream directly from this. - read the contents of the file into a ruby string, create a java String from this and then try to create a java ByteArrayInputStream from the java String - and many other permutations I fear I am missing something very simple here... Has anyone accomplished something like this...