How to insert file into database

Hi,

I’m trying to insert a file into the database. If I give fixed file path it is working. But if I pass a file as a parameter it is throwing an error. How can I do this?

Regards,
Krishnakanth

Anyone has a solution for this?