BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

what content type to set to for images in HTML email

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock
View previous topic :: View next topic  
Author Message
Eugene V. Goldberg
Guest





PostPosted: Thu Nov 27, 2003 11:24 am    Post subject: what content type to set to for images in HTML email Reply with quote



Hello,

I need to set ContentType to "image/jpeg" for jpeg inline images.
What about gif, bmp, wmf, emf etc?

Thanx,
Eugene.


Back to top
Ignacio Vazquez
Guest





PostPosted: Thu Nov 27, 2003 3:22 pm    Post subject: Re: what content type to set to for images in HTML email Reply with quote



"Eugene V. Goldberg" <egold (AT) mts-nn (DOT) ru> wrote in message
[email]3fc5df00 (AT) newsgroups (DOT) borland.com[/email]...
Quote:
I need to set ContentType to "image/jpeg" for jpeg inline images.
What about gif, bmp, wmf, emf etc?

ftp://ftp.isi.edu/in-notes/iana/assignments/media-types/

Cheers,
Ignacio



Back to top
Eugene V. Goldberg
Guest





PostPosted: Thu Nov 27, 2003 4:12 pm    Post subject: Re: what content type to set to for images in HTML email Reply with quote



Thanx Ignacio, nice doc.

"Ignacio Vazquez" <ivazquezATorioncommunications.com> wrote

Quote:
"Eugene V. Goldberg" <egold (AT) mts-nn (DOT) ru> wrote in message
[email]3fc5df00 (AT) newsgroups (DOT) borland.com[/email]...
I need to set ContentType to "image/jpeg" for jpeg inline images.
What about gif, bmp, wmf, emf etc?

ftp://ftp.isi.edu/in-notes/iana/assignments/media-types/

Cheers,
Ignacio





Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Thu Nov 27, 2003 10:54 pm    Post subject: Re: what content type to set to for images in HTML email Reply with quote


"Eugene V. Goldberg" <egold (AT) mts-nn (DOT) ru> wrote


Quote:
What about gif

It is "image/gif".

Quote:
bmp

It is "image/bmp".

Quote:
wmf

It has no official Content-Type, but Microsoft has set asside
"image/x-win-metafile" for its own use.

Quote:
emf

It has no associated Content-type of its own at all.

Quote:
etc?

All of the official Content-Type values are registered at IANA:

MIME Media Types
http://www.iana.org/assignments/media-types/index.html

As far as programming is concerned, applications that work with file
extensions register their known/supported extensions in the Registry. Most
registered file extensions have their associated Content-Type stored with
them as well. You can look up a Content-Type for a give file extension, and
then fall back to "application/octet-stream" as a default value when a
Content-Type is unknown (Indy already does that for you). You can either
read the Registry manually, or alternatively use Indy's TIdMimeTable helper
class, which does the lookups for you.


Gambit



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.