Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 202
  • Last Modified:

xml file with images

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
R8VI
Asked:
R8VI
  • 2
1 Solution
 
käµfm³d 👽Commented:
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
 
IrzanaCommented:
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
 
R8VIAuthor Commented:
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
 
IrzanaCommented:
To display the image back, decode the base64string

http://stackoverflow.com/questions/1588306/base64-encoded-string-to-file-c
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now