|  | @@ -33,6 +33,8 @@ public class CameraCaptureService {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      public boolean getCapture(URL url, String cameraCode, String fileName) throws IOException {
 | 
	
		
			
				|  |  |          HttpURLConnection connection = null;
 | 
	
		
			
				|  |  | +//        BufferedInputStream bis = null;
 | 
	
		
			
				|  |  | +//        BufferedOutputStream bos = null;
 | 
	
		
			
				|  |  |          ByteArrayOutputStream byteArrayOutputStream = null;
 | 
	
		
			
				|  |  |          ByteArrayInputStream byteArrayInputStream = null;
 | 
	
		
			
				|  |  |          FileOutputStream fileOutputStream = null;
 | 
	
	
		
			
				|  | @@ -72,17 +74,17 @@ public class CameraCaptureService {
 | 
	
		
			
				|  |  |                      byteArrayOutputStream.write(bytes,0,index);
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |                  byteArrayInputStream = new ByteArrayInputStream(byteArrayOutputStream.toByteArray());
 | 
	
		
			
				|  |  | -                String uploadUrl = "/data/test_picture/"+ IdUtils.fastSimpleUUID()+".jpeg";
 | 
	
		
			
				|  |  | +                //String uploadUrl = "/data/test_picture/"+ IdUtils.fastSimpleUUID()+".jpeg";
 | 
	
		
			
				|  |  |  //                String uploadUrl = "d://tmp/c/"+ (cameraCode + "-" + (System.currentTimeMillis() / 1000)) +".jpeg";
 | 
	
		
			
				|  |  |  //                if (log.isDebugEnabled()) {
 | 
	
		
			
				|  |  |  //                    log.debug("生成至服务器本地开始,路径为: " + uploadUrl);
 | 
	
		
			
				|  |  |  //                }
 | 
	
		
			
				|  |  | -                fileOutputStream = new FileOutputStream(uploadUrl);
 | 
	
		
			
				|  |  | -                IOUtils.copy(byteArrayInputStream, fileOutputStream);
 | 
	
		
			
				|  |  | +                //fileOutputStream = new FileOutputStream(uploadUrl);
 | 
	
		
			
				|  |  | +                //IOUtils.copy(byteArrayInputStream, fileOutputStream);
 | 
	
		
			
				|  |  |  //                if (log.isDebugEnabled()) {
 | 
	
		
			
				|  |  |  //                    log.debug("生成至服务器本地结束,路径为: " + uploadUrl);
 | 
	
		
			
				|  |  |  //                }
 | 
	
		
			
				|  |  | -                byteArrayInputStream.reset();
 | 
	
		
			
				|  |  | +                //byteArrayInputStream.reset();
 | 
	
		
			
				|  |  |  //                if (log.isDebugEnabled()) {
 | 
	
		
			
				|  |  |  //                    log.debug("getCapture======" + fileName);
 | 
	
		
			
				|  |  |  //                }
 |