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

Examples

open allclose all

Basic Examples  (2)

Export an image as a ByteArray object:

In[1]:=
Click for copyable input
Out[1]=

Import the bytes to produce the original image:

In[2]:=
Click for copyable input
Out[2]=

Export an image as a ByteArray object:

In[1]:=
Click for copyable input
Out[1]=

Write the bytes to a temporary file:

In[2]:=
Click for copyable input

Verify the bytes were correctly written by importing the file:

In[3]:=
Click for copyable input
Out[3]=

Scope  (2)

Properties & Relations  (1)

Possible Issues  (1)

See Also

ImportByteArray  StringToByteArray  ExportString  ByteArray  Export

Introduced in 2017
(11.2)