Similar to Pauls answer. You can read the binary data of the file you want to store into a MemoryBlock and then save the resulting string into the database. We've done this in several applications. Don't expect it to be speedy as all of that happens in RAM first and then gets written to the database.
Ideally, I think, you'd like to compress the file/string before saving. But there is no gzip built-in to Xojo so you'd have to result to using a 3rd party solution for compression or making an OS call via Declares.