import java.io.DataInputStream;import java.io.File;import java.io.FileOutputStream;import java.io.IOException; import java.net.URL; public class Test { public static void main(String[] args) throws IOException { // TODO Auto-generated method stub Str
存储内地图片思路:首先把原有的图片以流的方式读取出来,再以流的方式存储到目标文件: package imgStream; import java.io.*; public class ImgStream { public static void main(String srga[]) { File source = new File("user.jpg"); File desk = new File("G:\\learn\\javademoS\\imgs"); if