[erlang-questions] Convert an OtpErlangBinary object to Java InputStream
Mon Apr 19 17:14:56 CEST 2010
It works !!!
Now, how about to convert an UTF8 String to OtpErlangBinary() ?
2010/4/19 Vlad Dumitrescu <>
> On Mon, Apr 19, 2010 at 16:02, zabrane Mikael <> wrote:
> > Does someone knows how to build a Java InputStream object
> > from an OtpErlangBinary object?
> Try something like
> OtpErlangBinary bin = (OtpErlangBinary)(msg.elementAt(0));
> InputStream is = new ByteArrayInputStream(bin.binaryValue());
More information about the erlang-questions