Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MIME types

Status
Not open for further replies.

riches85

Programmer
Nov 13, 2002
59
US
Is there a class out there that would have a function that could determine a files MIME type by looking at the file name? Everything that I have seen has been for J2EE. Thank You
 
>>>> determine a files MIME type by looking at the file name

No ! OS file names or file extensions have nothing to do with the kind of data that is contained within.

Eg - you could easily name a file "text-html.html" and paste some JPEG byte data into it ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top