This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to Represent dynamic Image data into XML

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

I have some Employee Data in my MySQL Database.
I am representing all this data in form of XML as shown

<Employees>

<User>
<name>Kiran</name>
<Dept>20</Dept>
</User>

<User>
<name>Ravi</name>
<Dept>30</Dept>
</User>

</Employees>



I am using XstreamAPI to convert ArrayList of Employee Data into XML . All this works fine .


Now my question is that ,Image of an Employee has also been added .

Please let me know as how can bring this Image also into this XML Format .
Please share your inputs and views on this .

Thanks .
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can base64 encode it.
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks at least you gave some input to perform Google search on this .
 
Scott Selikoff
author
Saloon Keeper
Posts: 4033
18
Eclipse IDE Flex Google Web Toolkit
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't recommend putting binary data inside XML, its not particularly good at it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic