A scanned document is just an image. Inserting an image into a database table as a blob is simple, but usually not recommended. The usual recommendation is to keep the image file outside of the database in a filesystem, and then have the database point to that file.