The Artima Developer Community
Sponsored Link

Java Answers Forum
help on a program for saving a file on a web server

6 replies on 1 page. Most recent reply: Apr 15, 2002 3:03 AM by Neva Mohammad

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 6 replies on 1 page
Neva Mohammad

Posts: 28
Nickname: neva
Registered: Apr, 2002

help on a program for saving a file on a web server Posted: Apr 15, 2002 1:47 AM
Reply to this message Reply
Advertisement
I am using fileDialog to get my file from the local drive, however I am stuck when it comes to uploading it onto the server..
I am using BufferedReader to read the file and make some changes inside it (on which I am confused) and then I need to save it once in one location (the archive) and then change the name for the display page and save it in the displaying location.
can anyone help?
Thanks in advance


Singh M.

Posts: 154
Nickname: ms
Registered: Mar, 2002

Re: help on a program for saving a file on a web server Posted: Apr 15, 2002 1:51 AM
Reply to this message Reply
State your actual problem and you will definitely get some kind of help.

Neva Mohammad

Posts: 28
Nickname: neva
Registered: Apr, 2002

Re: help on a program for saving a file on a web server Posted: Apr 15, 2002 2:27 AM
Reply to this message Reply
Sorry if I have been vague..
i collect the file from the local drive. (;o) easy)
i then need to save it onto the web server i.e. upload it. How do I do that?
Thanks

Singh M.

Posts: 154
Nickname: ms
Registered: Mar, 2002

Re: help on a program for saving a file on a web server Posted: Apr 15, 2002 2:40 AM
Reply to this message Reply
you can use O'reilly MultipartRequest for doing the upload. There is an eg. of its usage in the servlet programming book by Jason Hunter.

Neva Mohammad

Posts: 28
Nickname: neva
Registered: Apr, 2002

Re: help on a program for saving a file on a web server Posted: Apr 15, 2002 2:45 AM
Reply to this message Reply
I don't have access to that book. Is it on the Web?

Singh M.

Posts: 154
Nickname: ms
Registered: Mar, 2002

Re: help on a program for saving a file on a web server Posted: Apr 15, 2002 2:52 AM
Reply to this message Reply
well, it is not available online, fortunately, the source for egs. is avaialable. Have a look at the following link...

http://www.servlets.com/jservlet/examples/ch04/index.html#ex04_17

The multipart class is also available on this site.

PS : Get hold of the book, if you can.

Neva Mohammad

Posts: 28
Nickname: neva
Registered: Apr, 2002

Re: help on a program for saving a file on a web server Posted: Apr 15, 2002 3:03 AM
Reply to this message Reply
Thanks..

Flat View: This topic has 6 replies on 1 page
Topic: Urgent help regarding Reflection Previous Topic   Next Topic Topic: how can i do the word processor's page operations in my java word processor

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use