public static byte[] returnBitMap(String path) {  
	        URL url = null;  
	        InputStream is =null;  
	        byte[] in_b;
	        try {  
	            url = new URL(path);  
	        } catch (MalformedURLException e) {  
	            e.printStackTrace();  
	            logger.error("error parsing url "+path, e);
	         }  
	        try {  
	            HttpURLConnection conn = (HttpURLConnection) url.openConnection();//利用HttpURLConnection对象,我们可以从网络中获取网页数据.  
	            conn.setDoInput(true);  
	            conn.connect();  
	            is = conn.getInputStream(); //得到网络返回的输入流  
	              
		        int bytesize=is.available();
		        ByteArrayOutputStream outStream = new ByteArrayOutputStream();  
		        byte[] data = new byte[bytesize];  
		        int count = -1;  
		        while((count = is.read(data,0,bytesize)) != -1)  
		            outStream.write(data, 0, count);  
		          
		        data = null;  
		        in_b = outStream.toByteArray();
		        
		        is.close();
		        outStream.close();
		        return in_b;  
	        } catch (IOException e) {  
	            e.printStackTrace();
	            logger.error("error connecting url "+path, e);
	            return null;
	        } 
	 }