How to get file extention from Content-type.
- From: "shilpa" <shilpa.giri@xxxxxxxxx>
- Date: 29 Jun 2005 23:38:24 -0700
Hi there,
I want to get file extention from file's content-type.
I wanted to handle file with blank name in my mail client.
For handling this I need to create temporary file. For that I need to
decide file extention based on content-type.
getFileNameMap(..) function of UrlConnection constructs FileNameMap but
FileNameMap has method just to fetch content type from file extetion. I
want exactly opposite of this i.e File extention from Content-Type.
It would be great if any one can help me.
Thanks,
Shilpa
.
- Follow-Ups:
- Re: How to get file extention from Content-type.
- From: Thomas Weidenfeller
- Re: How to get file extention from Content-type.
- Prev by Date: Re: Creating a DropDown Menu
- Next by Date: Re: How to get file extention from Content-type.
- Previous by thread: Creating a DropDown Menu
- Next by thread: Re: How to get file extention from Content-type.
- Index(es):