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)
Export an expression to a byte array representing an XLS file:
Check the format of the byte array:
Import the data from the byte array:
Write the bytes to an XLS file:
Import the data from the file:
Properties & Relations (1)
Export to a file and use FileFormat to guess the file format:
Export to a byte array and guess the format:
Related Guides
History
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
BibTeX
@misc{reference.wolfram_2025_bytearrayformat, author="Wolfram Research", title="{ByteArrayFormat}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/ByteArrayFormat.html}", note=[Accessed: 26-April-2025 ]}
BibLaTeX
@online{reference.wolfram_2025_bytearrayformat, organization={Wolfram Research}, title={ByteArrayFormat}, year={2019}, url={https://reference.wolfram.com/language/ref/ByteArrayFormat.html}, note=[Accessed: 26-April-2025 ]}