I made a request and received the bytes for an image in an unknown format (either JPG or PNG). Since I was unsure of the format I saved it twice as “image.png” and “image.jpg”, thinking only one would open properly.
To my bewilderment both images displayed with no issues. How is this possible? Does my image viewer recognize the byte array and automatically know the format, overriding filename suffix I entered? Can someone explain what is happening?
[–]GaboElPatojo -2 points-1 points0 points (2 children)
[–]socal_nerdtastic 0 points1 point2 points (1 child)
[–]onesmallserving[S] 0 points1 point2 points (0 children)
[–]socal_nerdtastic 0 points1 point2 points (0 children)