This week's giveaway is in the Spring forum.
We're giving away four copies of Learn Spring Security (video course) and have Eugen Paraschiv on-line!
See this thread for details.
Win a copy of Learn Spring Security (video course) this week in the Spring 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: 4007
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic