校验文件检查失败
一直检验文件失败,啥原因?AppID:wxaea6511bbd4adadb
一直检验文件失败,啥原因?AppID:wxaea6511bbd4adadb
你用的是第几种方式生成的二进制流的数据的,你可以把你用c写的发过来看下么?
我的还是打不开。。。
String str = (String)map.get(“erwma”);
File file = new File(“E://”,“a.jpg”);
file.createNewFile();
OutputStreamWriter out=new FileWriter(file);
out.write(str);
out.close();
public static void createrwma(Map map){
try {
String str = (String)map.get(“erwma”);
byte[] b = str.getBytes();
File file = new File(“E://”,“a.jpg”);
OutputStream out=new FileOutputStream(file);
out.write(b);
out.close();
} catch (Exception e) {
e.printStackTrace();
}
}
我的这个生成了文件还是不行啊