Convert to Base64

Hi guys!

I need to put this in a PDF generator that doesn’t accept URLs in images.
So, I was thinking about using BASE64.

Is it possible to convert a chart to BASE64?