JInterface question

Vlad Dumitrescu <>
Wed Jun 15 22:05:35 CEST 2005


Hi,

If your application permits, you could also send the binary as-is (without 
any base64 encoding) and do the encoding where and when it is needed. Or 
handle the encoded binary as a regular binary, send it and decode it on the 
Erlang side.

If you send "normal" Erlang objects, you don't need to use OtpOutputStream 
at all, it is handled behind the scenes by for example OtpMBox.send/receive.

>  From the OtpOutputStream class documentation :
> Provides a stream for encoding Erlang terms to external format, for 
> transmission or storage.

Yes, for storage, you don't need any magic header, for transmission you do.

regards,
Vlad



More information about the erlang-questions mailing list