Le problème réside dans l'appel "toString()" :binaryStream.toString(); BinaryInputStream n'implémente pas toString() .Utilisez quelque chose comme ceci pour lire les octets :
int ch;
//read bytes from ByteArrayInputStream using read method
while((ch = binaryStream.read()) != -1)
{
System.out.print((char)ch);
// store it to an array...
}