Hi
I am new to adf and I want to upload a file and store it in a specified directory + I want to save the path of this file in a database table.. I read a lot of blogs and tutorials and I am not able to find any solution
any help ?

There is no step by step tutorial for every problem...
Reading the blogs and tutorials should give you enough information to code the remaining part yourself.
You can read my blog on handling images http://tompeez.wordpress.com/2011/11/26/jdev11-1-2-1-0-handling-imagesfiles-in-adf-part-1/ (and the other tow parts). Then you have to change the code to store the data on the servers file system and the path to it in the db.
However, I would not encourage you to store the data in the file system as you can't guaranty that the files are not delete, leaving stale db records.

this code is taken from a java class to upload and save an image using adf ( and saving the file on the disk ).. I am trying to edit the code as I want.. but I want to upload a file and not an image.. what is the equivelant of this code above if I am using files and not images.