encoded_string = (
    """iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="""
    )
decoded_string = base64.b64decode(encoded_string)
print('Decoded :', decoded_string)
Python, can someone guess the type of a file only by its base64 encoding?