'Create and upload PDF to azure blob storage
I'm using PDFkit to create a PDF, however I want to upload the created PDF to azure blob storage. I have the below code (typescript) but its not working:
const doc = new PDFDocument();
doc.fontSize(27).text("test", 100, 100);
doc.end();
const uploadBlobResponse = await blockBlobClient.upload(
doc,
Buffer.byteLength(doc)
);
i'm able to connect to the azure blob storage, however the uploading part is not working
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
