Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
Thread: open a file created in JS
01-05-2011, 07:13 PM #1
- Join Date
- Jan 2011
- Thanked 0 Times in 0 Posts
open a file created in JS
In a nutshell, it generates pdf bytes (called buffer), encodes the bytes into base64, and opens it in the browser:
document.location.href = 'data:application/pdf;base64,' + Base64.encode(buffer);
Last edited by concealed; 01-05-2011 at 07:26 PM.