旋
旋转的影子
Unregistered / Unconfirmed
GUEST, unregistred user!
//读取文件
FileInputStream dataFOS = new FileInputStream("V://a.jpg"
byte[] dd = new byte[1024];
StringBuffer strbuffer = new StringBuffer();
while(dataFOS.read(dd, 0, 1024)!=-1)
{
strbuffer.append(new String(dd));
dd = new byte[1024];
}
dataFOS.close();
//写入文件
File file=new File("V://m.jpg"
if(!file.exists())
file.createNewFile();
FileOutputStream out=new FileOutputStream(file);
out.write(buffer);
out.close();
FileInputStream dataFOS = new FileInputStream("V://a.jpg"
byte[] dd = new byte[1024];
StringBuffer strbuffer = new StringBuffer();
while(dataFOS.read(dd, 0, 1024)!=-1)
{
strbuffer.append(new String(dd));
dd = new byte[1024];
}
dataFOS.close();
//写入文件
File file=new File("V://m.jpg"
if(!file.exists())
file.createNewFile();
FileOutputStream out=new FileOutputStream(file);
out.write(buffer);
out.close();