Design Introduction “Air” Styles Mobile Design Principles Styles UX Overview Design Patterns UI Components for Tizen App Design 2.3 TV Design Principles Styles UX Overview Patterns UI Components Wearable Development Tizen Studio Overview Download Tizen Extensions for Visual Studio Family IoT extension SDK Docs Blog Blog Announcing the Tizen Studio 3.7 Release Announcing the Tizen Studio 3.1 Release Community Forums General Support Tizen .NET Web Application Development Native Application Development SDK & IDE Design Introduction “Air” Styles Mobile Design Principles Styles UX Overview Design Patterns UI Components for Tizen App Design 2.3 TV Design Principles Styles UX Overview Patterns UI Components Wearable Development Tizen Studio Overview Download Tizen Extensions for Visual Studio Family IoT extension SDK Docs Blog Blog Announcing the Tizen Studio 3.7 Release Announcing the Tizen Studio 3.1 Release Community Forums General Support Tizen .NET Web Application Development Native Application Development SDK & IDE
Download file from dataURL
I have a web application with a Canvas element and I am required to save the image currently in the canvas to the Device at a preferred location.
I have obtained the dataURL on clicking the save button and trying to download the image.
var dataURL = canvas.toDataURL();
document.getElementById(“test”).setAttribute(“href”,dataURL);
document.getElementById(“test”).setAttribute(“download”,”image.png”);
document.getElementById(“test”).click();
I also tried
window.open(canvas.toDataURL,”tempimage.png”);
which works in browser but is not working in the app.
Any suggestions or solution on How to download as an image the content under canvas tag?
BY
16 Apr 2025
Tizen Studio
BY
04 Nov 2024
Tizen Studio
BY
02 Apr 2024
Tizen Studio