filesystem_4.py 352 B

12345678910
  1. def fileEncode(self, fileName, encoding, single, chunkSize=256):
  2. """
  3. Called by MySQL and PostgreSQL plugins to write a file on the
  4. back-end DBMS underlying file system
  5. """
  6. with open(fileName, "rb") as f:
  7. content = f.read()
  8. return self.fileContentEncode(content, encoding, single, chunkSize)