Azure Blob Storage

This article was translated from English: Does it need improvement?
Translated
View the article in English

PDFs can be loaded from and saved to files, streams, and binary arrays, all of which can work with Blob Storage.

Loading a PDF from Memory

A new instance of IronPdf.PdfDocument can be initialized from any of these in-memory objects:

  • A MemoryStream
  • A FileStream
  • Binary data as a byte array (byte[])

This approach allows loading a PDF from memory efficiently.

Saving a PDF to Memory

An IronPdf.PdfDocument can be saved directly to memory in one of two ways:

  • IronPdf.PdfDocument.Stream exports the PDF as a System.IO.MemoryStream.
  • IronPdf.PdfDocument.BinaryData exports the PDF as a byte array (byte[]).

This makes it easy to work with PDFs in environments where disk access may be restricted or when you need to pass data between systems in memory.

Further reading

Curtis Chau
Escritor Técnico

Curtis Chau tiene una licenciatura en Ciencias de la Computación (Carleton University) y se especializa en el desarrollo front-end con experiencia en Node.js, TypeScript, JavaScript y React. Apasionado por crear interfaces de usuario intuitivas y estéticamente agradables, disfruta trabajando con frameworks modernos y creando manuales bien ...

Leer más
¿Listo para empezar?
Nuget Descargas 16,154,058 | Versión: 2025.11 recién lanzado