'Called by MySQL and PostgreSQL plugins to write a file on the
back-end DBMS underlying file system'

def fileEncode(self, fileName, encoding, single, chunkSize=256):

    checkFile(fileName)
    with open(fileName, 'rb') as f:
        content = f.read()
    return self.fileContentEncode(content, encoding, single, chunkSize)
