Exemplo n.º 1
0
 def read_bytes(self, path):
     """Read file content in binary mode"""
     file = default_storage.open(path)
     content = file.read()
     file.close()
     return content
Exemplo n.º 2
0
 def read_bytes(self, path):
     """Read file content in binary mode"""
     file = default_storage.open(path)
     content = file.read()
     file.close()
     return content