How do I know if a binary data is a jpg?

My application needs to load only images of type jpg, and I wanted to know if it is possible to check what type of image I am inserting in a binary data.

Hi Vicent,

this component returns the extension of the binary file for some types (jpg included)


Thx Jo´se!

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.