how to store file path name in database

Dear everyone,how can i store the the file into folder and the file path in the MySql databasereally urgent...any one please give ur suggestions...
[175 byte] By [senthil_yogaa] at [2007-11-27 9:46:16]
# 1

saving a file

try

{

BufferedWriter out = new BufferedWriter(new FileWriter(path+name));

out.write(contents);

out.close();

}

catch (IOException e)

{

e.printStackTrace();

System.out.println("File write error.");

}

SQL code probably would look something like

INSERT INTO table_name VALUES(... match however your table is set up ...);

that, after establishing a connection.

uremoga at 2007-7-12 23:56:24 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...