From a web API, I have a bunch of realllyyy long strings that look like this:
data:image/jpeg;base64,(...)
Sites like this will decode these strings no problem, but Mathematica doesn't seem to be able to. BaseDecode
gives me a ByteArray which can't be re-imported as a JPEG, and ImportString doesn't want to import as a JPEG either.
Is there any way, in Mathematica, to convert from a base64 encoded image to the image itself?
For experimentation, here is a dump of one of the image strings. It should end up looking like a semi-messed up cathedral thingy (I'm training GANs)