aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Image Upload Using Java" Watch "Image Upload Using Java" New topic
Author

Image Upload Using Java

Anonymous
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"
Sheriff

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
Thanks
Ram
gautham kasinath
Ranch Hand

Joined: Dec 01, 2000
Posts: 583
please use the correct nomenclature while registering for the ranch
Regds
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"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
<pre>

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

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.
Thanks.
Cindy
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Image Upload Using Java