• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Image Upload Using Java

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why not just use ftp?? You can have your java code call the ftp program that you are using.
 
ram mohan
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Cindy,
Can u please elloborate little more with some example code
Thanks
Ram
 
gautham kasinath
Ranch Hand
Posts: 583
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please use the correct nomenclature while registering for the ranch
Regds
Gautham Kasinath
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<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
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic