• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Reading a file on client without uploading it to server

 
Fawad Ali
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I am in a strange situation. I have some files on a clients PC. I want to read few lines of those files. But the file sizes are very big like 1 gb. So I do not want to upload the file to the server, because it will take a lot to upload, yet want to read it. So is there anyway to read the file on client and get the first few lines and submit that data to server.

I know there wont be any workaround but I am posting incase if there is anything.

Thanks in advance.
 
Fawad Ali
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I mean if client allows a server to access a particular drive and if the server knows the ip of the client. Something like that may be.
 
Dieter Quickfend
Bartender
Posts: 543
4
Java Netbeans IDE Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should be able to do it with an inputstream, no? Just read the first X bytes/chars and abandon your loop.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not with a Servlet. HTTP is not designed to work this way. You could do it with an Applet, or similar client side technology.
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JNLP (webstart) is a reasonable option too.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic