ByteArrayQ
ByteArrayQ[expr] gives True if expr is a valid ByteArray object, and False otherwise.
Examples
Test byte array:
ByteArrayQ[ByteArray[{1, 2, 3}]]
(* True *)Non-byte array:
ByteArrayQ[{1, 2, 3}]
(* False *)Please visit the official Wolfram Language Reference for more details.