my HTML5 web application receives a file as binary data via a websocket. Is there any way to initiate a file download dialog (via javascript) to save the received data to the users disk?
Thank you!
You need to build a dataUri and open a new window with this. Specific mimetypes can trigger the browser's automatic save as dialog.
Example data uri: "data:application/octet-stream,base64" + base64binary
"data:application/octet-stream,base64" + base64binary
1.4m articles
1.4m replys
5 comments
57.0k users