Azure Blob Storage

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
Technical Writer

Curtis Chau holds a Bachelor’s degree in Computer Science (Carleton University) and specializes in front-end development with expertise in Node.js, TypeScript, JavaScript, and React. Passionate about crafting intuitive and aesthetically pleasing user interfaces, Curtis enjoys working with modern frameworks and creating well-structured, visually appealing manuals.

...

Read More
Ready to Get Started?
Nuget Downloads 16,298,329 | Version: 2025.11 just released