|  |  | @ -28,7 +28,13 @@ public class DownloadController { | 
			
		
	
		
		
			
				
					
					|  |  |  |         if (name.endsWith("pdf") || name.endsWith("doc")) { |  |  |  |         if (name.endsWith("pdf") || name.endsWith("doc")) { | 
			
		
	
		
		
			
				
					
					|  |  |  |             OutputStream os = null; |  |  |  |             OutputStream os = null; | 
			
		
	
		
		
			
				
					
					|  |  |  |             try { |  |  |  |             try { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 FileInputStream input = new FileInputStream(new File(filePath + FileConstant.COMMON_FILE_PATH  + name)); |  |  |  |                 FileInputStream input = null; | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 if ("device".equals(type)){ | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     input = new FileInputStream(new File(filePath + FileConstant.DEV_COMMON_FILE_PATH  + name)); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 }else { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     input = new FileInputStream(new File(filePath + FileConstant.COMMON_FILE_PATH  + name)); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |                 OutputStream out = response.getOutputStream(); |  |  |  |                 OutputStream out = response.getOutputStream(); | 
			
		
	
		
		
			
				
					
					|  |  |  |                 byte[] b = new byte[2048]; |  |  |  |                 byte[] b = new byte[2048]; | 
			
		
	
		
		
			
				
					
					|  |  |  |                 int len; |  |  |  |                 int len; | 
			
		
	
	
		
		
			
				
					|  |  | 
 |