Convert an OtpErlangBinary object to Java InputStream

zabrane Mikael zabrane3@REDACTED
Mon Apr 19 16:02:41 CEST 2010


Hi List,

Does someone knows how to build a Java InputStream object
from an OtpErlangBinary object?

I tried this, but it doesn't even compile:

...
OtpErlangBinary bin    = (OtpErlangBinary)(msg.elementAt(0));
InputStream is = (InputStream) bin;

Regards
Zabrane


More information about the erlang-questions mailing list