It should be straightforward once you get used to using AJAX to load a URL in to a Binary Data object. Here's an example that takes a canvas snapshot and posts it to a URL: post-snapshot.c3p
It posts to example.com - just replace that with your own URL.
As the comment in the events explains, you can also use the BinaryData.GetBase64 expression to convert the canvas snapshot to a base64 string. However in this case that will only serve to make it slower and less efficient.