What are the test cases that can be considered on media (pictures) being migrated from file location to a database?
Some research would have been appreciated. You have not mentioned about file type. Since no details are available I have considered your application does upload and download which in case of upload goes to the database.
There are hundreds of other scenarios.