TIMOB-17567-Replace the use of getFileExtensionFromUrl as it is for encoded url and have issues with path with special characters
TIMOB-17567-additional fix to get right mimetype from stream
Merge pull request #6216 from salachi/TIMOB-17567

[TIMOB-17567] Android: Replace the use of getFileExtensionFromUrl as it is for enco...