Re: Copying file over network.

From: Matt Humphrey (matth_at_ivizNOSPAM.com)
Date: 08/20/04


Date: Fri, 20 Aug 2004 14:39:34 -0400


"Rajul" <kingrajul@hotmail.com> wrote in message
news:b11d6212.0408200746.bb752bd@posting.google.com...
> Hi Matt,
> thanks for information ! i have a batch file that generates few (10
> per batch)very small files (1k each). These files contain data number
> that .. when represented in a web page makes sense.
> There will be couple of such batch files all around the infrastructure
> of different clients and i need a functionality that these files are
> automatically transferred/written/copied to my web server. I can not
> use JSP form post because it will require manual intervention. Is
> there a way that a java application can post files (multipart) to my
> file receiving servlet without a form submit.

If you can install a Java application on each machine, that program can form
the HTTP POST request to your servlet. An application also will not have
security problems for reading files or opening connections that an applet
would and it can be fully automated. It's been a long time since I last
used that kind of function, so I can't give you the exact syntax for it, but
I'm sure you can find it somewhere, perhaps on Roedy's site
http://mindprod.com/jgloss/jgloss.html. Essentially, you create an HTTP
Request and copy the file contents to the request's output stream.

Cheers,
Matt Humphrey matth@ivizNOSPAM.com http://www.iviz.com/



Relevant Pages

  • Re: Why Are There No Killer Java Apps ?
    ... >> Four apps written in Java that I couldn't live without right there. ... > OpenOffice isn't written in Java. ... Matt believes these newsgroups are populated by mostly ... written in other languages implies the main program ...
    (microsoft.public.dotnet.general)
  • Re: What the hell is C-Sharp?
    ... : This is misinformation. ... I don't think there is anything Java cannot do, that PHP can. ... why do you claim such things, Matt? ...
    (comp.lang.php)
  • Re: Java availability
    ... Does anyone know if there is any kind of sample pgm provided by ibm that ... will perform a java call from the mvs environment? ... Thanks Matt ... The response from the 'java -version' command is pasted below. ...
    (bit.listserv.ibm-main)
  • Re: Matt Lombard Banned from SW forums?
    ... I dislike JAVA, ... Matt is back on the SW forums and thank you all for your support! ... fingers than accepting responsibility. ...
    (comp.cad.solidworks)