Skip to content

readDataOfLength #2

Description

@fabiomassimo

On a branch of code I've this

ZipFile *archive = [[ZipFile alloc] initWithFileName:archivePath mode:ZipFileModeUnzip];

if ( ! [archive locateFileInZip:filePath])
{
    [archive close];

    return nil;
}

FileInZipInfo *info = [archive getCurrentFileInZipInfo];

ZipReadStream *stream = [archive readCurrentFileInZip];



NSData *data = [stream readDataOfLength:info.length];<-------INTERFACE ERROR

[stream finishedReading];

[archive close];

return data;

But I get interface error. How can i fix it?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions