How to transfer files between web server and Java applet?

I am new in Java programming.  Can anyone give me some
suggestions to deliver and load files between web server
and Java applet client?
namnamAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

wcrosmanCommented:
Are you referring to files on the server being delivered to the applet?
Or, are you looking for bi-directional passing of file data?
namnamAuthor Commented:
I'm lokking for bi-directional passing of file data between
server and the applet.  Any method other than data streams?
wcrosmanCommented:
Streams are the standard Java way to deal with file data.  However, if
you don't want to deal with streams on the applet side you can use
CGI programming methods or server side java (Servlets).

With CGI methods you can post data to files on the Server and retrieve some responses.

With Servlets you can carryon a two way conversation with the Server and
have the Servlet read-write data to files.  Note that the Servlet will still have to deal with data streams.

Servlets are documented in the site formerly known as Jeeves at JavaSoft.  Servlets require a Java enabled http server or a java enable
server monitoring a specific port on the same machine as the http server.
WebLogic provides this type of server and has lots of documentation about developing these kinds of applications.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

namnamAuthor Commented:
I don't intend to use CGI methods.  How about using URL to save the file data on server site?
wcrosmanCommented:
I believe that to do this using an URL you actually have to POST data and invoke a CGI script or a Servlet.
namnamAuthor Commented:
Can you give me more info about Servlet?  Can I use it in java
applet?  Do I need to install any package in order to use it?

wcrosmanCommented:
Go to the sites referred to in my initial answer.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java EE

From novice to tech pro — start learning today.