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 ....
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 ....
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")