I wrote an application for Android and used services there for compressing photos and uploading photos to the server.
Compressing a photo seems like a long enough time, especially if it is 100 photos, so I implemented it in the service so that at this moment the user can minimize the application and do other things. Can I do something like this in ios?
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
Then I upload these photos to the server using web services (OkHttp). When sending 100 photos, this is also a rather lengthy process, so it was implemented using services. Can I do something like this in ios?
			
			Compressing a photo seems like a long enough time, especially if it is 100 photos, so I implemented it in the service so that at this moment the user can minimize the application and do other things. Can I do something like this in ios?
			
				B4X:
			
		
		
		    For i=0 To uris.Size-1
        Dim FileSize=100 As Int
        Do While File.Size(File.DirInternal,NumberFile&".jpg")>500000
            Out = File.OpenOutput(File.DirInternal,NumberFile&".jpg",False)
            Bitmap.WriteToStream(Out, FileSize, "JPEG")
            Out.Close
            FileSize=FileSize-10
        Loop
    Next 
				 
 
		 
 
		 
 
		 
 
		 
 
		