How can i check a base64 string is a file(what type?) or not?
Many filetypes have a header (the first few bytes of the file) with some fixed information by which a file can be identified as a gz, png, pdf, etc. So every base64 encoded gz file would also start with a certain sequence of base64 characters, by which it can be recognized. A gzip-file always starts … Read more