So, this is my problem.
I read from some APIs a URL that points to a file.
The only thing I know about this file is that it is a file... but I would like to detect what kind of file this is. The URL is not helping since it is encoded in base64 (I guess) and so I have no file name or extension I could use for my scope.

I have tried to use node-mime module (<https://github.com/broofa/node-mime>) but what I get is *application/octet-stream* which is not that much useful in detecting the real type of the file.

The aim is to display "in browser" the files that the browser is able to handle without requiring the user to download them.

Thanks!