Convert an OtpErlangBinary object to Java InputStream

zabrane Mikael <>
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;


More information about the erlang-questions mailing list