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