jQuery in Action, 3rd edition
The moose likes Java in General and the fly likes Image Upload Using Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Image Upload Using Java" Watch "Image Upload Using Java" New topic

Image Upload Using Java

Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
I want to upload images to the server using java.
Kindly help me with examples in java doing the same.
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
Why not just use ftp?? You can have your java code call the ftp program that you are using.

"JavaRanch, where the deer and the Certified play" - David O'Meara
ram mohan
Ranch Hand

Joined: Oct 17, 2000
Posts: 68
Hi Cindy,
Can u please elloborate little more with some example code
gautham kasinath
Ranch Hand

Joined: Dec 01, 2000
Posts: 583
please use the correct nomenclature while registering for the ranch
Gautham Kasinath

"In the country of the blind, the one eyed man is the King"
Gautham Kasinath CV at : http://www.geocities.com/gkasinath
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521

String cmdline = "C:\\windows\\Ftp.exe pretty.jpg";
Runtime myRun = Runtime.getRuntime();
Process p = null;
p = myRun.exec(cmdline);
catch(IOException ioe){
System.out.println("Exec failed: " + ioe);
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
Oh yeah,
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please choose a new name which meets the requirements.
Have you checked out Aspose?
subject: Image Upload Using Java
It's not a secret anymore!