ByteArrayFormat
ByteArrayFormat[ba]
attempts to determine what ImportByteArray format could be used to import the ByteArray object ba.
Details and Options

- ByteArrayFormat returns a format name used by ImportByteArray.
- ByteArrayFormat uses heuristic methods and may not give correct results, particularly for shorter strings.
- ByteArrayFormat does not verify that ImportByteArray would succeed if applied to the ByteArray object ba.
Examples
open allclose allScope (1)
Format interpretation of different ByteArray objects:
Applications (1)
Properties & Relations (1)
Export to a file and use FileFormat to guess the file format:
Wolfram Research (2019), ByteArrayFormat, Wolfram Language function, https://reference.wolfram.com/language/ref/ByteArrayFormat.html.
Text
Wolfram Research (2019), ByteArrayFormat, Wolfram Language function, https://reference.wolfram.com/language/ref/ByteArrayFormat.html.
CMS
Wolfram Language. 2019. "ByteArrayFormat." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ByteArrayFormat.html.
APA
Wolfram Language. (2019). ByteArrayFormat. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ByteArrayFormat.html