my dog learned polymorphism*
The moose likes Servlets and the fly likes Creating / Writting into the files on the Web Server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Creating / Writting into the files on the Web Server " Watch "Creating / Writting into the files on the Web Server " New topic
Author

Creating / Writting into the files on the Web Server

Pratik Khetia
Ranch Hand

Joined: Jun 29, 2001
Posts: 50
Hi Can anybody suggest any ways to do so ??
I have a file (image file) in my local machine and that I want to post it to the web server ..how can I do that !!

thanks
Pratik
Gerry Giese
Ranch Hand

Joined: Aug 02, 2001
Posts: 247
I could us more detail, Pratik. Uploading the image file using FTP should be pretty standard. Do you have an account on the server? Who owns the server?
Hope this helps....


CJP (Certifiable Java Programmer), AMSE (Anti-Microsoft Software Engineer)
Author of Posts in the Saloon
Mahesh Rana
Ranch Hand

Joined: Sep 05, 2001
Posts: 139
Do you want to do it programatically ?
1. In HTML,
form with file control (and multipart servlet on the server) is a way to do that.
2. In stand alone applications, Use any FTP session class.

SCJP2
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Creating / Writting into the files on the Web Server
 
Similar Threads
how to create a file on web server at runtime
providing downloading functionality for a file which is on disk
how to access an external server thriugh a jsp?
FILE IO on Remote PC
Is it possible to create a folder on the web server from a servlet?