Solved

xml file with images

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

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

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

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
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. 
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

763 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