import java.io.*;
public class Helloworld {
public static void main( String[] args ) throws Exception{
File inFile = new File("/Users/user/Desktop/a.jpg");
File outFile = new File("/Users/user/Desktop/b.jpg");
FileInputStream input = new FileInputStream(inFile);
FileOutputStream output = new FileOutputStream(outFile);
int content = 0;
while( (content=input.read()) != -1 )
{
output.write(content^12);
}
//关闭资源
output.close();
input.close();
}
}