Here are the examples of the python api django.core.files.base.FileObj taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
3
View Complete Implementation : file.py
Copyright BSD 3-Clause "New" or "Revised" License
Author : NetEaseGame
Copyright BSD 3-Clause "New" or "Revised" License
Author : NetEaseGame
def getfile(self, *args, **kwargs):
if self.blob:
return self.blob.getfile()
return FileObj(ChunkedFileBlobIndexWrapper(FileBlobIndex.objects.filter(
file=self,
).select_related('blob').order_by('offset')), 'rb')