What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Get Image MIME Type?

Get Image MIME Type?
Author: Message:
davidpolitis
Full Member
***


Posts: 371
Reputation: 16
Joined: Aug 2006
O.P. Huh?  Get Image MIME Type?
hi, just wondering if anyone could point me to any functions etc. that could be used to get the MIME type of images such as png, jpg/jpeg, gif.

This post was edited on 09-17-2007 at 02:55 AM by davidpolitis.
09-17-2007 02:54 AM
Profile PM Find Quote Report
MeEtc
Patchou's look-alike
*****

Avatar
In the Shadow Gallery once again

Posts: 2200
Reputation: 60
38 / Male / Flag
Joined: Nov 2004
Status: Away
RE: Get Image MIME Type?
Volv made some functions for this in a group of files that I'm using for YASS. it looks for the file extension, and returns the MIME for that ext

http://volv.net/?p=13
[Image: signature/]     [Image: sharing.png]
I cannot hear you. There is a banana in my ear.
09-17-2007 03:13 AM
Profile PM Web Find Quote Report
davidpolitis
Full Member
***


Posts: 371
Reputation: 16
Joined: Aug 2006
O.P. RE: Get Image MIME Type?
I need the MIME Type, not the Extension Type XD

I'm not that n00by, but thanks anyway ;)
09-17-2007 06:03 AM
Profile PM Find Quote Report
Ezra
Veteran Member
*****

Avatar
Forgiveness is between them and God

Posts: 1960
Reputation: 31
37 / Male / Flag
Joined: Mar 2003
RE: Get Image MIME Type?
If you have the file on a webserver you could try using a xmlhttp HEAD request. And get the Content-type header.
[Image: 1-0.png]
             
09-17-2007 10:28 AM
Profile PM Web Find Quote Report
davidpolitis
Full Member
***


Posts: 371
Reputation: 16
Joined: Aug 2006
O.P. RE: Get Image MIME Type?
oh... awesome Ezra. Just what I wanted it for. I can do it on my own now. Although... it is a bit of a hastle having to download the file and use xmlhttp and I'm not capable of translating this to JScript :(

EDIT: I don't need the xmlhttp part anymore. Anyone have any ideas how I can check a local images headers or MIME types?

This post was edited on 09-17-2007 at 12:13 PM by davidpolitis.
09-17-2007 10:31 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On