This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android forum!
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 :
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 . 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.
subject: Image Upload Using Java
Similar Threads
File upload
Upload and Download a file
parsing files in applets
Multiple file upload
Folder Upload using Java(MultiPartRequest)