| Author | 
		  Message
		 | 
		
		  | paustin_ours | 
		  
		    
			  
				 Posted: Mon Oct 03, 2005 9:55 am    Post subject: encoded data | 
				     | 
			   
			 
		   | 
		
		
		   Yatiri
 
 Joined: 19 May 2004 Posts: 667 Location: columbus,oh 
  | 
		  
		    
			  
				i get a 64 base encoded binary data as an input xml.
 
 
how do i convert this back to binary? is there special decoding that is needed or can i cast it to blob and assign the values to a hexbinary field? my output needs to be MRM. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | jefflowrey | 
		  
		    
			  
				 Posted: Mon Oct 03, 2005 10:02 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Grand Poobah
 
 Joined: 16 Oct 2002 Posts: 19981
  
  | 
		  
		    
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | paustin_ours | 
		  
		    
			  
				 Posted: Mon Oct 03, 2005 10:47 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Yatiri
 
 Joined: 19 May 2004 Posts: 667 Location: columbus,oh 
  | 
		  
		    
			  
				| even if i parse the data thats coming in as 64 base encoded data. how do i decode it back to output as binary? | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | jefflowrey | 
		  
		    
			  
				 Posted: Mon Oct 03, 2005 10:52 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Grand Poobah
 
 Joined: 16 Oct 2002 Posts: 19981
  
  | 
		  
		    
			  
				I hope you're not intending to include raw binary data inside XML.
 
 
That won't work.
 
 
Otherwise, the answer is the same as anything else in broker.  Copy the logical data to a different element that has a different physical rendering. _________________ I am *not* the model of the modern major general. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | paustin_ours | 
		  
		    
			  
				 Posted: Mon Oct 03, 2005 4:12 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Yatiri
 
 Joined: 19 May 2004 Posts: 667 Location: columbus,oh 
  | 
		  
		    
			  
				| am sry not sure if i got that. how is the decoding taken care of? | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | jefflowrey | 
		  
		    
			  
				 Posted: Mon Oct 03, 2005 4:19 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Grand Poobah
 
 Joined: 16 Oct 2002 Posts: 19981
  
  | 
		  
		    
			  
				
   
	| paustin_ours wrote: | 
   
  
	| am sry not sure if i got that. how is the decoding taken care of? | 
   
 
 
 
The broker does it, the same way that it does EBCDIC to Unicode to ASCII.
 
 
Remember that broker always converts *everything* into Unicode internally.  So when you go to access the Logical Message Tree, all the data will be in Unicode.
 
 
So in order to support messages that have data in a base64 encoded physical format, Broker must be able to decode that into Unicode.  And then reencode that Unicode into whatever other physical format you instruct it to. _________________ I am *not* the model of the modern major general. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |