| 
					
				 | 
			
			
				@ -673,6 +673,7 @@ public class ImService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						InputStream is = null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						String url = "http://file.api.weixin.qq.com/cgi-bin/media/get?access_token=" + accessToken + "&media_id=" + mediaId; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						logger.info("media/get"+url); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						try { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							URL urlGet = new URL(url); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							HttpURLConnection http = (HttpURLConnection) urlGet.openConnection(); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -686,6 +687,7 @@ public class ImService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							// 获取文件转化为byte流 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							is = http.getInputStream(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						} catch (Exception e) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							logger.info(e.getMessage()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							e.printStackTrace(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						return is; 
			 |