I am working on a c# project with a MySQL database. I have a log file and I want to store this file in the database.
I want to save the actual file into the database but what I've seen is you have to encode it to a string or write the bytes to a string and put that in the database, is that how it works to store the file, I thought you could just give the command the file path and it stores it in the database without me requiring to do all the encoding in the software.
If this makes any difference, it will need to be retrieved again from PHP, but I'm guessing that this shouldn't matter.