in reply to Converting Text Images into Images

You are looking for MIME::Base64's decode_base64 routine. Pass the entire image string in, and you should get the image back in a scalar variable.