KapiteinOllie
Member
Hello,
I try to sent data encoded with base64 to b4j server but the b4j server replaces the "+" character with " " of the base64 string.
How can i prevent this?
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
			
			I try to sent data encoded with base64 to b4j server but the b4j server replaces the "+" character with " " of the base64 string.
How can i prevent this?
			
				B4X:
			
		
		
		Sub Process_Globals
    Private su As StringUtils
    Private ec As B4XCipher
End Sub
Private Sub request
    Dim job As HttpJob
    job.Initialize("", Me)
    
    job.PostString(link&/req, "q="&su.EncodeBase64(ec.Encrypt("client".GetBytes("UTF8"),"server")))
    
    Wait For (job) JobDone (j As HttpJob)
    Log("J: " & j.Success)
    
    If j.Success Then
        MsgboxAsync(j.GetString, "Response")
    End If
End Sub 
				 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		