private string getMime(string exportType)
{
// get a Hashtable array of [type=> extension]
// from MIMETYPES constant
Hashtable mimelist = bang(MIMETYPES);
string ext = getExtension(exportType);
// get mime type asociated to extension
string mime = mimelist[ext].ToString() != null ? mimelist[ext].ToString() : "";
return mime;
}