{"action":"created","issue":{"url":"https://api.github.com/repos/emory-libraries/eulfedora/issues/20","repository_url":"https://api.github.com/repos/emory-libraries/eulfedora","labels_url":"https://api.github.com/repos/emory-libraries/eulfedora/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/emory-libraries/eulfedora/issues/20/comments","events_url":"https://api.github.com/repos/emory-libraries/eulfedora/issues/20/events","html_url":"https://github.com/emory-libraries/eulfedora/issues/20","id":157706210,"number":20,"title":"Documentation: datastream.content","user":{"login":"bcail","id":2394596,"avatar_url":"https://avatars.githubusercontent.com/u/2394596?v=3","gravatar_id":"","url":"https://api.github.com/users/bcail","html_url":"https://github.com/bcail","followers_url":"https://api.github.com/users/bcail/followers","following_url":"https://api.github.com/users/bcail/following{/other_user}","gists_url":"https://api.github.com/users/bcail/gists{/gist_id}","starred_url":"https://api.github.com/users/bcail/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcail/subscriptions","organizations_url":"https://api.github.com/users/bcail/orgs","repos_url":"https://api.github.com/users/bcail/repos","events_url":"https://api.github.com/users/bcail/events{/privacy}","received_events_url":"https://api.github.com/users/bcail/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-31T15:51:19Z","updated_at":"2016-05-31T19:58:44Z","closed_at":null,"body":"https://github.com/emory-libraries/eulfedora/blob/master/eulfedora/models.py#L181\r\nSeems like it should say imgfile.read()... is that correct?"},"comment":{"url":"https://api.github.com/repos/emory-libraries/eulfedora/issues/comments/222802065","html_url":"https://github.com/emory-libraries/eulfedora/issues/20#issuecomment-222802065","issue_url":"https://api.github.com/repos/emory-libraries/eulfedora/issues/20","id":222802065,"user":{"login":"rlskoeser","id":691231,"avatar_url":"https://avatars.githubusercontent.com/u/691231?v=3","gravatar_id":"","url":"https://api.github.com/users/rlskoeser","html_url":"https://github.com/rlskoeser","followers_url":"https://api.github.com/users/rlskoeser/followers","following_url":"https://api.github.com/users/rlskoeser/following{/other_user}","gists_url":"https://api.github.com/users/rlskoeser/gists{/gist_id}","starred_url":"https://api.github.com/users/rlskoeser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rlskoeser/subscriptions","organizations_url":"https://api.github.com/users/rlskoeser/orgs","repos_url":"https://api.github.com/users/rlskoeser/repos","events_url":"https://api.github.com/users/rlskoeser/events{/privacy}","received_events_url":"https://api.github.com/users/rlskoeser/received_events","type":"User","site_admin":false},"created_at":"2016-05-31T19:58:44Z","updated_at":"2016-05-31T19:58:44Z","body":"@bcail no, you should be able to assign a file-like object with a read method.  (Possibly only relevant for  for `FileDatastream` and not the base datastream class, but that's mentioned in the documentation you linked to).  The save and ingest methods check for and handle reading from the file and posting it.  This allows eulfedora to handle large files, so the contents don't get read into memory all at once.\r\n\r\nThat example may not be great for another reason, though, which is that if you use the with block then the file will get closed before you actually use it to send content to fedora.\r\n\r\nIf you see a way to make this clearer in the documentation, please make a suggestion or pull request."}}
{"actor":{"display_login":"rlskoeser"}}