• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Embed image binary in XML

 
vishwas bhatt
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Folks,
I want to retrive image from a web server. Instead of converting image into byte stream on mobile device i want that web server give me a XML file in which Image binary data will threr in iamge tag. (<img> BINARY DATA </img> )And i can read on device using XML parser is this possible if yes then pls tell me how?
Thanx
wating for reply
 
Michael Yuan
author
Ranch Hand
Posts: 1427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Convert the binary data to base64 text and then dump the entire base64 string between the "image" tags.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic