added support for binary data as byte array