0

I'm currently saving a base64 svg string into the database. Now I need to save a png file to the database, which should also be base64 encoded. Is there a way to convert an svg string or a base64 encoded svg string to a base64 encoded png string?
This is what I'm doing right now:

let svg = this.$refs.chart.chart.getSVG()
let encodedChart = window.btoa(svg)
Sebastian Wędzel
  • 11,417
  • 1
  • 6
  • 16
sandro
  • 19
  • 6

0 Answers0