How: reading from client and writing to server


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: How: reading from client and writing to server

  1. #1
    Croven Guest

    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?



  2. #2
    Paul Clapham Guest

    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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center