binary stream binding