Check if contentstreamlength > 0 in download file
Check if stream.length > 0 in upload file
Replace IOException by return / Add Space in Check Rules log
Add activityListener.ActivityStopped(); before return if null stream