Added getByteArray