GeezerVison is showing resources.wolframcloud.com — ByteArrayPlot | Wolfram Function Repository
Visualize the contents of binary data
Contributed by:
Richard Hennigan (Wolfram Research)
| ResourceFunction["ByteArrayPlot"][bytes]
visualizes the binary data in a ByteArray bytes. |
| ResourceFunction["ByteArrayPlot"]["file"]
reads the contents of "file" into a ByteArray for visualization. |
| ResourceFunction["ByteArrayPlot"][expr]
equivalent to ByteArrayPlot[BinarySerialize[expr]]. |
| ResourceFunction["ByteArrayPlot"][expr,n]
visualizes up to n bytes of expr. |
Details and Options
ByteArrayPlot[expr] is equivalent to ByteArrayPlot[expr,1024].
Examples
Basic Examples (1)
Use the function:
Generalizations & Extensions (2)
Visualize the binary data contained in a file:
Only view the first 10 bytes:
View the contents of a CloudObject:
View the bytes of the WXF format directly:
Applications (1)
Compare binary formats:
Properties and Relations (1)
Packed arrays are aptly named:
Possible Issues (2)
By default, only the first 1024 bytes are shown:
Use the second argument to view more:
Requirements
Wolfram Language 11.3
(March 2018) or above
Version History
Related Symbols
License Information