Azure Blob 存儲
2022年1月19日
已更新 2024年10月20日
This article was translated from English: Does it need improvement?
TranslatedView the article in English
PDF 可以從文件、流和二進制數組中載入和保存。 所有這些都可以與 Blob Storage 配合使用。
實用連結
- 從記憶體 (MemoryStream) 加載和儲存 PDF 在 .NET 中 - https://ironpdf.com/how-to/pdf-memory-stream/
- 將 PDF 檔案作為位元組陣列供應於 C# 和 VB - https://ironpdf.com/how-to/asp-net-mvc-pdf-binary/
從記憶體加載PDF
新的 IronPdf.PdfDocument 實例可以對其中的任何記憶體對象進行初始化。
- 記憶體流
- 檔案流
二進位資料作為位元組陣列 (byte [])
這從記憶體中載入一個PDF。
將PDF保存到記憶體中
IronPdf.PdfDocument 可以通過兩種方式之一直接保存到內存中:
- IronPdf.PdfDocument.Stream 將 PDF 導出為 System.IO.MemoryStream
- IronPdf.PdfDocument.BinaryData 將 PDF 匯出為位元組陣列 (byte [])