我有pdf文件编码为base64字符串.如何将此字符串作为.pdf格式的文件下载到浏览器?
我已经尝试过的:
res.set('Content-Disposition', 'attachment; filename="filename.pdf"');
res.set('Content-Type', 'application/pdf');
res.write(fileBase64String, 'base64');
Run Code Online (Sandbox Code Playgroud)