| | |
beginner question <<save an image in a folder>>
![]() |
•
•
Join Date: Apr 2008
Posts: 102
Reputation:
Solved Threads: 2
I am an absolute beginner in JAVA, i want to know how to upload and save an image in a prescribed folder. sorry, i tried my best to search for this in the net, but i couldn't find any related to this, and also i do not have any sample code. if some one has done a similar task please help me.
i use JBuilder to Build my application..
Please help me i am completely lost in java
i use JBuilder to Build my application..
Please help me i am completely lost in java
Local P ...
•
•
Join Date: Jun 2009
Posts: 3
Reputation:
Solved Threads: 0
Hi,
For writing a file this is the code snippet
try {
BufferedWriter out = new BufferedWriter(new FileWriter("outfilename"));
out.write(char[] cbuf, int off, int len);
out.close();
} catch (IOException e) {
}
http://www.exampledepot.com/egs/java...iteToFile.html
Now what do you mean by upload? Is this a client-server setup?
In that case is client/server on JAVA platform, upload is used in HTTP perspective. Please eloborate your requirements.
For writing a file this is the code snippet
try {
BufferedWriter out = new BufferedWriter(new FileWriter("outfilename"));
out.write(char[] cbuf, int off, int len);
out.close();
} catch (IOException e) {
}
http://www.exampledepot.com/egs/java...iteToFile.html
Now what do you mean by upload? Is this a client-server setup?
In that case is client/server on JAVA platform, upload is used in HTTP perspective. Please eloborate your requirements.
•
•
Join Date: Apr 2008
Posts: 102
Reputation:
Solved Threads: 2
•
•
•
•
Hi,
For writing a file this is the code snippet
try {
BufferedWriter out = new BufferedWriter(new FileWriter("outfilename"));
out.write(char[] cbuf, int off, int len);
out.close();
} catch (IOException e) {
}
http://www.exampledepot.com/egs/java...iteToFile.html
Now what do you mean by upload? Is this a client-server setup?
In that case is client/server on JAVA platform, upload is used in HTTP perspective. Please eloborate your requirements.
there will be a button call browse when the user clicks on it he will be able to browse through the file system and select a file to upload or save on apache server with is installed on the same PC.
I simply want to Upload an image which is saved on your file system and save it on another location (like in CGI-BIN in apache server)
Local P ...
For pc to server upload you better to use something like Commons FileUpload
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
![]() |
Similar Threads
- about uploading the image or the folder in vb.net (VB.NET)
- Upload image folder (PHP)
- Save picture in access (VB.NET)
- how to save image into database (VB.NET)
- Image folder shared between multiple domains. (PHP)
- image folder /path (Linux Servers and Apache)
- save an image into a file using c++ (C++)
- IE "Save Image as;" Bitmap, wont in JPEG??? (Web Browsers)
Other Threads in the Java Forum
- Previous Thread: updating variable on ouseMoved
- Next Thread: Starting "Java" [Java tutorials / resources / faq]
| Thread Tools | Search this Thread |
account android api applet application array arrays automation bidirectional binary birt bluetooth class classes client code columns component constructor database designadrawingapplicationusingjavajslider draw eclipse error errors exception expand fractal game givemetehcodez graphics gui guidancer homework html ide image inetaddress inheritance integer intellij j2me java javamicroeditionuseofmotionsensor javaprojects jlabel jme jni jpanel jtextfield jtree julia linux list loop map method methods midlethttpconnection mobile mobiledevelopmentcreatejar monitoring myaggfun netbeans newbie nullpointerexception open-source oracle plazmic print problem program project property recursion ria scanner search server set sharepoint smart sms smsspam sort sourcelabs splash sql sqlite static string subclass support swing testautomation threads tree unlimited webservices windows






