Process file server result and convert to data URL with correct MIME type
Result from file server
Data URL or original string
Process file server result and convert to data URL with correct MIME type