Support files stored in the database as well as on the filesystem