Skip to content

CreateBlob fails on files greater than 5 gigs #1515

Closed
@halfpeaw

Description

@halfpeaw

Verified using the 64bit version of LibGit2sharp

Created a file stream that refers to a large 5 gig pst file.
Stream readStream = new FileStream(filePath, FileMode.Open);
Blob newBlob = repo.ObjectDatabase.CreateBlob(readStream, readStream.Length);

Got this error
LibGit2Sharp.LibGit2SharpException: failed to finish zlib inflation; stream aborted prematurely

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions