0

Need to know the MIME Types of file without program file name don't have any extension

1 Answers1

1

You can try to find it out using plain Java from an InputStream.

String mimeType = URLConnection.guessContentTypeFromStream(is);

Or you just check out the source code from guessContentTypeFromStream and open your file in an Editor and compare the hex values yourself.

mrkernelpanic
  • 4,268
  • 4
  • 28
  • 52