Results 1 to 4 of 4
- 09-16-2010, 05:41 PM #1
Member
- Join Date
- Apr 2010
- Posts
- 19
- Rep Power
- 0
upload file from local system to database
Hi all,
I have requirement that i have to upload a file from the local system to database. I got the technique to save the file data to the database. i am using eclipse for development. i have a jsp page where i have file upload option. when i select a file from the local system , i am passing this file path to the sevlet to read from the file and save it in the database. when i read from the path specified it is telling file not found. when i came to that the default path is set to the eclipse home directory. if i select the file from eclipse home directory my servlet is reading the file , when i select file from some other location it is not reading. what i have to do to solve this problem. please help me on this.
- 09-16-2010, 09:18 PM #2
Is all the code executing on the same PC?i am passing this file path to the sevlet to read from the file
Is the path a full path including the drive letter?
- 09-17-2010, 07:45 AM #3
Member
- Join Date
- Apr 2010
- Posts
- 19
- Rep Power
- 0
upload file from local system to database
hi ,
The code is in the remote server. yes i am passing full path(including the driver letter).
- 09-17-2010, 08:58 AM #4
Moderator
- Join Date
- Apr 2009
- Posts
- 10,452
- Rep Power
- 16
Similar Threads
-
File upload into database using Hibernate
By liljejalil in forum JDBCReplies: 1Last Post: 02-28-2010, 03:11 AM -
:large file upload to server(chunk upload)
By tommy_725 in forum NetworkingReplies: 0Last Post: 10-16-2009, 12:21 AM -
Accesing database(Access) from a local machine
By ersachinjain in forum JDBCReplies: 0Last Post: 08-14-2009, 05:09 PM -
upload excel file into database
By bhasker4 in forum IntroductionsReplies: 1Last Post: 07-13-2009, 09:13 PM -
How to read xml file located in local system using Java
By java_kick in forum Advanced JavaReplies: 2Last Post: 04-06-2009, 11:28 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks