There is an old C2 plugin, but I'm not sure if it can be ported to C3.
In C3 you can probably paste the sprite to DrawingCanvas, save canvas snapshot and then use some JS to convert it to Base64. Try googling "imagedata to base64 javascript", there are quite a few examples.
If the image is small and you don't necessarily need it to be in Base64, you can save snapshot pixel data in an array.