如何使用我们添加到Azure Function中的HTML中的图像?

问题描述 投票:0回答:1

enter image description here

我正在使用Azure Functions生成pdf,正在生成pdf,但无法获取pdf上的图像?谁能告诉我如何在pdf中添加图像,该图像已添加到放置index.js的文件夹中。

if (Code === '1416') {
  account.img = `\EmpPDF\\16.png`;
} else if (Code === '1411') {
  account.img = `\EmpPDF\\11.png`;
} else {
  account.img = `\EmpPDF\\1.png`;
}

const imgPath = Path.join(__dirname, account.img);
context.log("img Path : ", account.img);
azure azure-devops azure-functions
1个回答
0
投票

我最好将图像放入blob存储,然后在azure函数中请求它们

  [Blob("path/to/image", FileAccess.Read, Connection = "Connection")] Stream image
© www.soinside.com 2019 - 2024. All rights reserved.