Jmeter实例_图片爬虫学习

转自:https://mp.weixin.qq.com/s?__biz=MzU4MjQ5NzMzNA==&mid=2247483921&idx=1&sn=8fe828582de95b125f6ac96bd01e51c9&chksm=fdb62748cac1ae5e8f5c47be094626f0f05ab2c4431614d32950e21423154c9d5fc2a3dffca2&mpshare=1&scene=23&srcid=0509cxSK2P7t9oQ4pl9emXqz#rd

 

写这篇博客的目的只是为了记载,方便以后学习查找

 

 

 

 

 

 

 

 

 

 

 

 

 

 

import java.io.*;
prev.setDataEncoding("UTF-8");
byte[] result = prev.getResponseData();
String file_name = "E:\\\Desktop\\\1\\\picture\\\_${__V(imageText_${num})}.jpg";
File file=new File(file_name);
FileOutputStream out = new FileOutputStream(file);
out.write(result);
out.close();

 

 

 

 

 

 

 

 

posted @ 2019-05-10 11:34  &阿岩  Views(357)  Comments(0Edit  收藏  举报