I have a Vue3 SPA that generates dashbaords and such. When I visit https://website.com/#/ it loads my app. I want to visit https://website.com/#/dynamic-img and have the response be a image/png media type with image data.
I want to create a route like this:
{ path: '/dynamic-img', component: () => import('components/DrawChart'), name: 'DrawChart' },
And when that component renders, it returns an image/png media type to client, that is the image.
Can this be done using vuejs? I understand there are ways to handle web page scraping to gather the images, but I'd like to do it directly from vue.
location.href = "data:image/png;base64...at some point but some browsers don't support this, specifically any chrome-based. Consider explaining the purpose, it could be XY problem