CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   XML (http://www.codingforums.com/forumdisplay.php?f=3)
-   -   how to add image to each item in feed ? (http://www.codingforums.com/showthread.php?t=284445)

needsomehelp 12-20-2012 08:39 AM

how to add image to each item in feed ?
 
I have been trying to add an image but so far all I have been able to do is add the image as media using the <enclosure> method, but this causing the xml to fail validation. I have since then found out that this is for mp3 and not images. so been using the wrong method all along.

What I wish to do is add an image to each and every <item> in the feed.

How do I do this ?

sunfighter 12-20-2012 01:32 PM

xml is for transferring text. an image can not be transferred in it. But you can send the url of the image and use that to retrieve the image. Problem I see with that is enormously high band-widths.

Next thought was to transfer image into ascii code like they did in the old emails. I did find this article http://www.codeproject.com/Articles/...in-an-XML-File. Good luck.

Alex Vincent 12-20-2012 04:54 PM

Quote:

Originally Posted by sunfighter (Post 1301295)
an image can not be transferred in it.

What about SVG? :thumbsup:

sunfighter 12-20-2012 10:11 PM

Possible Alex anything as long as it's text should work. I just have never done it. So can not say for real.


All times are GMT +1. The time now is 12:45 AM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.