• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to send text file from a servlet to a Java application?

 
rick collette
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI,
I am trying to retrieve text file from local file system and send it from a servlet to a Java application, how can I do it? Thanks.
 
Avi Abrami
Ranch Hand
Posts: 1141
1
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Rick,
I'm not sure, but in case you haven't already tried, I believe you can find the answer at the Servlets.com Web site.
Good Luck,
Avi.
 
Monde Hans
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try to use URL. and readf the file via HTTP protocol. Your servlet will hav to just read the file and pass it thruough out.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!