Whether a byte sequence might represent a format (PNG, CSV, etc.)—Wolfram Documentation
Details
- ByteArrayFormatQ attempts to identify whether a ByteArray object can be imported as a specific format.
- ByteArrayFormatQ uses heuristic methods and may not give correct results, particularly for shorter arrays.
- ByteArrayFormatQ does not verify that ImportByteArray would succeed if applied to ba.
Examples
open all close allBasic Examples (1)
Text
Wolfram Research (2020), ByteArrayFormatQ, Wolfram Language function, https://reference.wolfram.com/language/ref/ByteArrayFormatQ.html.
CMS
Wolfram Language. 2020. "ByteArrayFormatQ." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ByteArrayFormatQ.html.
APA
Wolfram Language. (2020). ByteArrayFormatQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ByteArrayFormatQ.html
BibTeX
@misc{reference.wolfram_2025_bytearrayformatq, author="Wolfram Research", title="{ByteArrayFormatQ}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/ByteArrayFormatQ.html}", note=[Accessed: 22-February-2026]}
BibLaTeX
@online{reference.wolfram_2025_bytearrayformatq, organization={Wolfram Research}, title={ByteArrayFormatQ}, year={2020}, url={https://reference.wolfram.com/language/ref/ByteArrayFormatQ.html}, note=[Accessed: 22-February-2026]}