-
I have a situation where my web eframe/egui app has generated some image data. I have that data in a I would like to offer a button to the user to save that data as a file locally. The image data may be up to around 8MiB. I have tried using a data-uri, for example, this should 'link' the user to a 1x1 red pixel png file;
If I paste the url above into a new tab, it works and displays the image (I would prefer a download dialogue, but this would be good enough). However when I click the button created by the code above, the new tab is an
Many thanks for any help or suggestions, and thanks to all contributors of egui for a great framework. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I have created a fairly awful solution;
If there is interest in including this data-url-anchor style of supporting direct download of bytes to a file, I would be happy to create a PR with a tidy implementation as part of |
Beta Was this translation helpful? Give feedback.
I have created a fairly awful solution;
If there is interest in including this data-url-anchor style of supporting direct download of bytes to a file, I would be happy to create a PR with a tidy implementation as …