Depends on what you mean when you say RSS. Many people use this term
to describe all kinds of feeds. If you really mean RSS 2.0, images are
not technically supported on individual items (though they are
supported on the channel). However, typically the "description"
element of an item is XML-encoded HTML, and most folks include "img"
tags along with their text to get images into their individual items.
The RSS 2.0 spec is well defined here: http://cyber.law.harvard.edu/rss/rss.html
(Don''t ask me why it belongs to Harvard Law.)
With Atom, the story is essentially the same, except that you''ll put
your HTML in either your "summary" or your "content" (or
both) sub-
elements of your entry elements. Atom also supports something called
an "enclosure", but that''s typically not used to embed
images, it''s
used to provide a link to any type of media.
The Atom spec can be found here: http://atompub.org/rfc4287.html
But to make this long story short: Use HTML with IMG tags in your
description/summary/content. :)
On Apr 29, 4:37 am, Bontina Chen
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:> Sorry that I''m not very familiar with rss standards.
> I read rails recipe and implemented the rss example.
> But now I would like to insert images in a feed.
> How could this be done?
>
> From some of feeds with images , I found them using rdf.
> Any one could point some direction?
> Many thanks
>
> Abon
>
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---