Java - How to get the mime type of a file from its stream? -


this question has answer here:

is possible content type/mime type of file file read stream stored location.

i bit new file , stuffs, searching day long couldn't have needed.

please me out of this. in advance

edit:- edit:

guys comments.

my java version 6 , can't trust filename mime type.

use this:

files.probecontenttype(path) 

by way question duplicate of this post. please check thoroughly before asking next question.


Comments

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -