Solved

xml file with images

Posted on 2011-09-06
4
190 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

738 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