Retrieve icon behind file-extentions

I was looking for a solution for this “problem” :

In a lot of webapplications we display a small icon if the notesdocument contains attachments.

Now we have to maintain this icons manually (doc, xls, pdf, mathcad, autocad, …)

Is it possible to retrieve the bitmaps behind the extensions on the users pc using javascript ?

Many thanks

Jan

Subject: Retrieve icon behind file-extentions

No. Not unless your users have given you VERY unusual permissions. No IT admin in his/her right mind would allow internal users to grant such permissions, and a public user would have to be absolutely insane to grant a website file-system privileges on the local machine.

Subject: RE: Retrieve icon behind file-extentions

Hello Stan,

the application is an “intranet”, so if it necessary, we have all the permissions on the users computers…

Subject: Retrieve icon behind file-extentions

It is not exactly what you asked, but it may be a solution to your problem anyway: http://www.dominozone.net/domzone/dzCMS.nsf/web/DZChangingIcon

Subject: Retrieve icon behind file-extentions

A simpler solution would be to fiddle with your web page design so that the correct icons are shown for “known” file types. If you upload a standard set of icons as image resources, you can then link your attachment rendering code to these for a better look and feel on the web.

There are a few ways to do this, but one of the best articles is this one, IMHO:

HTH