bmargulies
bmargulies

Reputation: 100196

How to read from an MSI file in chunks via the API?

The ReadStream API of the Record object in the MSI COM API reads all of the data of a record. If a record is very very large, this can be, well, inconvenient. It seems strange that there is no mechanism to read progressive chunks. Is there some other path to this data that we're missing?

Upvotes: 1

Views: 267

Answers (1)

Michael Urman
Michael Urman

Reputation: 15905

Do successive calls to that API without changing the field return successive chunks of the stream? That's approximately how the underlying C++ API MsiRecordReadStream works, and ReadStream appears to be a simple projection of the C++ API.

Upvotes: 1

Related Questions