Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

retrieving content does not scale #3

Open
richard-jones opened this issue Apr 24, 2012 · 0 comments
Open

retrieving content does not scale #3

richard-jones opened this issue Apr 24, 2012 · 0 comments

Comments

@richard-jones
Copy link
Contributor

[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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant