// BufferedOutputStream out = new BufferedOutputStream(new FileOutputStream(file1));
// if (attachFile != null) {
// out.write(attachFile);
// }
// out.close();用这样的形式,没有办法设置charset。 还是不需要设置啊
attachFile 是byte[]形式的。还有其他的什么方法吗
// if (attachFile != null) {
// out.write(attachFile);
// }
// out.close();用这样的形式,没有办法设置charset。 还是不需要设置啊
attachFile 是byte[]形式的。还有其他的什么方法吗
我的 byte[] 是从数据库中的BLOB类型中取出来的,byte[]这个就是流的形式吧
PrintWriter pw = null;
try {
fw = new FileWriter("c:/123.txt");
String str = new String("哈尔滨工业大学");
pw = new PrintWriter(fw);
pw.println(str);
pw.flush();
System.out.println("写入完成");
}catch(Exception e) {
e.printStackTrace();
}
AIX的本地系统向LINUX系统传送后,这个文件名就是乱码了。 这样就找不到这个文件了
如何解决呢