ByteArrayFormatQ

Listing of Formats »

ByteArrayFormatQ[ba,"fmt"]

gives True if the ByteArray object ba might be imported as format "fmt" and gives False otherwise.

ByteArrayFormatQ[ba,{"fmt1","fmt2",}]

gives True if ba might be imported as one of "fmti".

Details

Examples

Basic Examples  (1)

Export an image to a GIF string:

Check if the byte array might be a GIF:

Check if the byte array might be a JPEG:

Check if the byte array might be in one of the image formats:

Wolfram Research (2020), ByteArrayFormatQ, Wolfram Language function, https://reference.wolfram.com/language/ref/ByteArrayFormatQ.html.

Text

Wolfram Research (2020), ByteArrayFormatQ, Wolfram Language function, https://reference.wolfram.com/language/ref/ByteArrayFormatQ.html.

BibTeX

@misc{reference.wolfram_2021_bytearrayformatq, author="Wolfram Research", title="{ByteArrayFormatQ}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/ByteArrayFormatQ.html}", note=[Accessed: 18-October-2021 ]}

BibLaTeX

@online{reference.wolfram_2021_bytearrayformatq, organization={Wolfram Research}, title={ByteArrayFormatQ}, year={2020}, url={https://reference.wolfram.com/language/ref/ByteArrayFormatQ.html}, note=[Accessed: 18-October-2021 ]}

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