-
How: reading from client and writing to server
Hi,
Currently, I am writing a java servlet program and
I encountered the following problems:
How can I read and write a image file "*.gif" from the
client's harddisk to server's harddisk when the user post
the HTML parameters to the java servlet?
-
Re: reading from client and writing to server
Croven <cyp01@uow.edu.au> wrote in message news:3913ab71$1@news.devx.com...
>
> Hi,
>
> Currently, I am writing a java servlet program and
> I encountered the following problems:
>
> How can I read and write a image file "*.gif" from the
> client's harddisk to server's harddisk when the user post
> the HTML parameters to the java servlet?
>
It's not clear what you mean here because servlets don't have clients. Do
you have HTML that sends the _name_ of a file to the servlet? You can't do
anything with that because the servlet doesn't know what computer the
request came from. Or do you have an applet that's sending a request to
your servlet? Probably the same problem, plus applets can't get at files on
the client's disk either without security precautions such as applet
signing.
By the way, HTML has a "Put" (as opposed to the usual "Get" or "Post")
method. I've never seen it used and most servers disable it (and I don't
exactly know what it's supposed to do) but you could look into that.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks