 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Eugene V. Goldberg Guest
|
Posted: Thu Nov 27, 2003 11:24 am Post subject: what content type to set to for images in HTML email |
|
|
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
|
Posted: Thu Nov 27, 2003 3:22 pm Post subject: Re: what content type to set to for images in HTML email |
|
|
"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
|
Posted: Thu Nov 27, 2003 4:12 pm Post subject: Re: what content type to set to for images in HTML email |
|
|
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
|
Posted: Thu Nov 27, 2003 10:54 pm Post subject: Re: what content type to set to for images in HTML email |
|
|
"Eugene V. Goldberg" <egold (AT) mts-nn (DOT) ru> wrote
It is "image/gif".
It is "image/bmp".
It has no official Content-Type, but Microsoft has set asside
"image/x-win-metafile" for its own use.
It has no associated Content-type of its own at all.
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 |
|
 |
|
|
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
|
|