i update the image in a databse .

how updation image .

firstly i create a folder upload in a root directory. i create path in database table.

how can update the image by path.