Solved

xml file with images

Posted on 2011-09-06
4
185 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
  • 2
4 Comments
 
LVL 74

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

The Client Need Led Us to RSS I recently had an investment company ask me how they might notify their constituents about their newsworthy publications.  Probably you would think "Facebook" or "Twitter" but this is an interesting client.  Their cons…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

758 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now