Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can xml contain images? 3

Status
Not open for further replies.

nphani

Technical User
Feb 10, 2002
104
US
I have to display images from server and am planning to use xml for the data transfer. I have images in my database in the form of a BLOBs. I am not sure how to get those BLOBs into XML. How does XML handle images? I have seen many references where XML contains the path of the image on the server. But what if the images are stored in BLOBs? Can I put the whole BLOB into an XML tag?

Thanx in advance,
Phani
 
XMl can handle images very well, but i am not sure about BLOBs, never tried it with them. I don't see why you shouldn't be able to send them over when transferring.

Regards,


Lewis Harvey
lewis@lharvey.com
 
How do you handle the images? Do you include a reference to a seperate file, or does the xml file itself contain the image? If so, what kind of image do you use?

Brian
"There are 2 kinds of people in the world, those that divide people into two groups and those that don't. I belong to the second group." - tag line I stole
 
That depends on your schema and translation. One method would be to use the Base64 encoding methods and include the data in your XML data directly. Here is a good article that outlines the basics of this method:


Hope this helps.

Glen Appleton

VB.Net student.
 
Thanks for the link. It is very helpful.

Brian
"There are 2 kinds of people in the world, those that divide people into two groups and those that don't. I belong to the second group." - tag line I stole
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top