Skip to content

retrieving content does not scale #3

@richard-jones

Description

@richard-jones

[Migrated from https://bitbucket.org/richardjones/python-sword2/issue/6/retrieving-content-does-not-scale]

If you do:

resource = conn.get_resource(content_iri=receipt.cont_iri)

Where receipt is some deposit receipt from a previous deposit. The value or receipt.content is a string containing the response; this won't scale in the event that the content is a large binary object. Better if we can convert this into a file handle, either reading directly from the http stream, or from a temp file.

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