This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How an applet should read all contents of a file through servlet...

 
Ananth Chellathurai
Ranch Hand
Posts: 349
Eclipse IDE Hibernate Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an applet which needs contents of a file in the form of byte array or string or an Input stream through a servlet. Can someone help me on how to make a servlet and how to get the values from servlet?

Thanks in Advance.

Ananth
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The JavaRanch Code Barn has an example applet that shows how to read a file line by line off the server: http://faq.javaranch.com/java/CodeBarnHelloServerFile

Reading a servlet URL requires different parameters to the URL constructor, but is otherwise similar. It's also possible to pass parameters in the URL.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic