| 
						
						
							
								
							
						
						
					 | 
					@ -66,6 +66,9 @@ public class ImageMat implements Serializable { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    public static ImageMat fromBase64(String base64Str){ | 
					 | 
					 | 
					    public static ImageMat fromBase64(String base64Str){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        InputStream inputStream = null; | 
					 | 
					 | 
					        InputStream inputStream = null; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        try { | 
					 | 
					 | 
					        try { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            if(base64Str.contains(",")){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                base64Str = base64Str.substring(base64Str.indexOf(",")+1); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            Base64.Decoder decoder = Base64.getMimeDecoder(); | 
					 | 
					 | 
					            Base64.Decoder decoder = Base64.getMimeDecoder(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            byte[] data = decoder.decode(base64Str); | 
					 | 
					 | 
					            byte[] data = decoder.decode(base64Str); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            inputStream = new ByteArrayInputStream(data); | 
					 | 
					 | 
					            inputStream = new ByteArrayInputStream(data); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |