1

I have searched around online about feed images to your rss feed. it seems not very popular. is it correct to use to feed images?

for instance,

<enclosure url="http://images.productserve.com/thumb/547/680654.jpg" type="image/jpeg" length="3241"/>

what is the length in the enclosure elementy?

MrSmith42
  • 9,961
  • 6
  • 38
  • 49
Run
  • 54,938
  • 169
  • 450
  • 748

1 Answers1

1

The enclosure tag is pretty popular for things like podcasts (so, audio files) but I haven't seen it used for images often.

length describes the file size in bytes, so it's up to you to pragmatically get that for each image you attach.

More info: http://en.wikipedia.org/wiki/RSS_enclosure

Bartek
  • 15,269
  • 2
  • 58
  • 65