I have a variable $photo
(huge string that has been base64 encoded) that I believe I need to decode it using MIME::Base64
with something like this:
my $decoded= MIME::Base64::decode_base64($photo);
now after that how to I make $decoded back into a jpg as it was before?