Solved

xml file with images

Posted on 2011-09-06
4
191 Views
Last Modified: 2012-05-12
HI,

I am building a solution that create an XML file on client server with certain nodes and gets transfered to another server.

What I need to know is that some nodes need to be populated with an image how can i do this please help
Also once on the second server i need to be able to show the image VIA a web page

Please help

Thanks,

Ravi
0
Comment
Question by:R8VI
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 36488711
What I need to know is that some nodes need to be populated with an image how can i do this please help
You'll probably want to base-64 encode the image data. You should be able to embed the base-64 version of your image inside the page--I am not certain of the cross-browser issues related to this, though. There is a blurb here about what this embedding would look like.
0
 
LVL 10

Accepted Solution

by:
Irzana earned 500 total points
ID: 36488775
this way you can store image

http://stackoverflow.com/questions/4776645/insert-image-into-xml-file-using-c

also,
do the reverse when showing image back
0
 

Author Comment

by:R8VI
ID: 36489006
Hi Irzana,

What do you mean by reverse what do i do ?
What functions do i use instead of
Convert.ToBase64String(). and
File.ReadAllBytes().

Thanks,

Ravi
0
 
LVL 10

Expert Comment

by:Irzana
ID: 36489291
To display the image back, decode the base64string

http://stackoverflow.com/questions/1588306/base64-encoded-string-to-file-c
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many times as a report developer I've been asked to display normalized data such as three rows with values Jack, Joe, and Bob as a single comma-separated string such as 'Jack, Joe, Bob', and vice versa.  Here's how to do it. 
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question