-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi All,
I have a problem for upload file txt. exp : profil.txt.
When I have finished upload, I try to open this file. the file is blank.
this is source:
if (media.isBinary()) {
Files.copy(new File(path), media.getStreamData());
} else {
BufferedWriter writer = new BufferedWriter(new java.io.FileWriter(
path));
Files.copy(writer, media.getReaderData());
}
Asked: 2011-05-16 04:31:13 +0800
Seen: 168 times
Last updated: May 16 '11