public File operaFileData(String path, byte[] by)
{
{
FileOutputStream fileout = null;
String fileName = path + "baidu.apk";
File file = new File(fileName);
if (file.exists())
{
file.delete();
}
try
{
fileout = new FileOutputStream(file);
fileout.write(by, 0, by.length);
} catch (FileNotFoundException e)
{
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e)
{
// TODO Auto-generated catch block
e.printStackTrace();
} finally
{
try
{
fileout.close();
} catch (IOException e)
{
// TODO Auto-generated catch block
e.printStackTrace();
}
}
return file;
}
}
{
{
FileOutputStream fileout = null;
String fileName = path + "baidu.apk";
File file = new File(fileName);
if (file.exists())
{
file.delete();
}
try
{
fileout = new FileOutputStream(file);
fileout.write(by, 0, by.length);
} catch (FileNotFoundException e)
{
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e)
{
// TODO Auto-generated catch block
e.printStackTrace();
} finally
{
try
{
fileout.close();
} catch (IOException e)
{
// TODO Auto-generated catch block
e.printStackTrace();
}
}
return file;
}
}