Hello,
Im using PostMultipart for sending Images files and parameters strings to a server, but i have nothing into the post responses , no images, either strings?
- is it depreciated like seen here : https://www.b4x.com/android/help/appupdating.html#deprecated_multipartfiledata,
and another function is to be used : Which one ?
- or is there a mistake somewhere below ?
For information : except that, the post works and the result string 'resPOStf' return tests that i want to return ...
part of the class :
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
With setting parameters and call :
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
Thanks
			
			Im using PostMultipart for sending Images files and parameters strings to a server, but i have nothing into the post responses , no images, either strings?
- is it depreciated like seen here : https://www.b4x.com/android/help/appupdating.html#deprecated_multipartfiledata,
and another function is to be used : Which one ?
- or is there a mistake somewhere below ?
For information : except that, the post works and the result string 'resPOStf' return tests that i want to return ...
part of the class :
			
				B4X:
			
		
		
		    Dim JobUpl As HttpJob
    JobUpl.Initialize(JOBName,Me)
    Log(PSTUrl)
    
    JobUpl.PostMultipart(PSTUrl, PSTParams, Array(FileInfos))
    JobUpl.GetRequest.Timeout = 60000
    Wait For (JobUpl) JobDone(JobUpl As HttpJob)
    data = JobUpl.GetString
    JobUpl.release   
    Return dataWith setting parameters and call :
			
				B4X:
			
		
		
		Dim Link As String = BoServerUpload ' Server URL
Dim mFileName As String = "mslogo.png"
Dim mFileTitle As String = "mslogo"
Dim Dir As String = File.DirAssets
UplParams.Put("FileName", mFileName)
UplParams.Put("Repert", "Images")
UplParams.Put("ConnGUID", UserGUID)
UplParams.Put("ProdId", 1585)
            
Dim Arqs As MultipartFileData
Arqs.Initialize       
Arqs.KeyName = mFileTitle
Arqs.Dir = Dir
Arqs.ContentType = "image/png"
Arqs.FileName = mFileName
            
Dim POStf As POSTfile 'class above
POStf.Initialize(Link, UplParams, "JobUPL", Arqs)
Wait For (POStf.SendPost) complete(resPOStf As String)        
Log(resPOStf)Thanks
 
				 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		