File.separator is ofwel / of \ die wordt gebruikt om het pad naar een specifiek bestand op te splitsen. Op Windows is dit bijvoorbeeld \ of C:\Documents\Test . Maar op Mac is het / .
Gebruik dus File.separator in plaats van / of \ , dan werkt het voor zowel Mac als Windows.
U kunt de kolomwaarde bijwerken met het type 'blob'
UPDATE `TableName` SET `ColumnName`=LOAD_FILE('FilePath/FileName.bin') WHERE `YourCondition`
// FilePath -> C:/foldername/filename.bin