Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to pick files from the client machine

 
Nidhi Singhal
Ranch Hand
Posts: 89
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am uploading an image file in the sql server database. The database thing is working fine. But the problem comes when ever the jsp tries to pick up any file from the client machine. In that case if the folder on the client machine (in which image file is present) is not sharable, it give 'access denied' error.
I am using request.getRemoteHost() to get the client machine name.

Please letme know if there is any solution to the above problem... how should I pick up a file from the client machine without making the folder sharable?

Thanks,
Nidhi
 
Sri Ram
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
U can use Multipart request to get the file from client machine to your server. This way you can copy the entire file to your server and then upload the image to DB.
 
sinasi susam
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you give an example of how to?
 
Sri Ram
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I dont think this thread must be in JDBC forum.

But here are the details.
Check this site for the specifications of Multipart request. U can download from
here.
 
Abhinav Srivastava
Ranch Hand
Posts: 354
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess you can use
Apache FileUploader.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic