package 百度首页;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
public class ImageRequest {
/**
* @param args
*/
public static void main(String[] args) throws Exception {
int i=2014213181;
for(;i<=2014213411;i++){
String str=Integer.toString(i);
//new一个URL对象
URL url = new URL("http://jwzx.cqupt.edu.cn/showstuPic.php?xh="+str);
//打开链接
InputStream inStream = url.openStream();
//得到图片的二进制数据,以二进制封装得到数据,具有通用性
byte[] data = readInputStream(inStream);
//n
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
public class ImageRequest {
/**
* @param args
*/
public static void main(String[] args) throws Exception {
int i=2014213181;
for(;i<=2014213411;i++){
String str=Integer.toString(i);
//new一个URL对象
URL url = new URL("http://jwzx.cqupt.edu.cn/showstuPic.php?xh="+str);
//打开链接
InputStream inStream = url.openStream();
//得到图片的二进制数据,以二进制封装得到数据,具有通用性
byte[] data = readInputStream(inStream);
//n