Validate content of an image in Base64

0

in which way I can validate that the content of a String of a base64 image is really that of an image and not an .exe with a different format ....

    
asked by Stevn 22.06.2018 в 18:09
source

1 answer

-1

not java but in php and javascript is more or less like that

if($_FILES['imagefile']['type'] != "image/jpg")
elseif($_FILES['imagefile']['type'] != "image/png")
elseif($_FILES['imagefile']['type'] != "image/gift")
    
answered by 22.06.2018 в 18:21