ExportByteArray[expr,"format"]
generates a ByteArray object corresponding to expr exported in the specified format.
ExportByteArray[exprs,elems]
generates a ByteArray object by treating exprs as elements specified by elems.


ExportByteArray
Listing of Formats »ExportByteArray[expr,"format"]
generates a ByteArray object corresponding to expr exported in the specified format.
ExportByteArray[exprs,elems]
generates a ByteArray object by treating exprs as elements specified by elems.
Details

- ExportByteArray generates a byte array corresponding to data exported in the specified format.
- ExportByteArray handles a large number of formats, each typically with many different possible elements. The possible formats are given in the list $ExportFormats and in the "Listing of All Formats".
- ExportByteArray works just like Export, with the same element specifications and options.
Examples
open all close allBasic Examples (2)
Scope (2)
Applications (2)
Properties & Relations (3)
ExportByteArray returns the same result as ExportString followed by StringToByteArray:
ExportByteArray returns the same result as Export followed by ReadByteArray:
If the export produces no data, an empty byte array is returned:
Related Guides
History
Text
Wolfram Research (2017), ExportByteArray, Wolfram Language function, https://reference.wolfram.com/language/ref/ExportByteArray.html.
CMS
Wolfram Language. 2017. "ExportByteArray." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ExportByteArray.html.
APA
Wolfram Language. (2017). ExportByteArray. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ExportByteArray.html
BibTeX
@misc{reference.wolfram_2025_exportbytearray, author="Wolfram Research", title="{ExportByteArray}", year="2017", howpublished="\url{https://reference.wolfram.com/language/ref/ExportByteArray.html}", note=[Accessed: 15-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_exportbytearray, organization={Wolfram Research}, title={ExportByteArray}, year={2017}, url={https://reference.wolfram.com/language/ref/ExportByteArray.html}, note=[Accessed: 15-August-2025]}