473,498 Members | 891 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Want to save an image into XML by using C#



Hi,

I am new to XML .I want to save and read an image into XML file by using
C#.Any body will help me.Thanks

*** Sent via Developersdex http://www.developersdex.com ***
Jan 11 '08 #1
1 9616
On 11 Jan, 05:49, shoukat rasool <shoukat_ras...@hotmail.comwrote:
Hi,

I am new to XML .I want to save and read an image into XML file by using
C#.Any body will help me.Thanks

*** Sent via Developersdexhttp://www.developersdex.com***
You have to convert binary data (e.g. images) into something like
Base64 before you can store it in XML. Base64 converts the data so
that it consists only of ASCII printable characters. It does cause
the size of the data to expand though, so you might not want to do it
for large images. If you do have large images, one option is to store
the images outside of the XML (say in a file or at some URI/URL) and
then include a reference to the image in the XML (much as HTML does).

HTH,

Pete Cordell
Codalogic
Visit http://www.codalogic.com/lmx/ for XML C++ data binding
Jan 11 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
16211
by: Prasad More | last post by:
Hello, I am trying to write a text on Multi-page TIFF image using C# and .NET GDI+. I have written following code to do this. When I execute this code I get "Invalid Parameter User. at...
4
3721
by: Hrvoje Vrbanc | last post by:
I would like to know the most efficient way to copy an image from an Internet URL to the local hard disk by means of using an ASP.NET page. So, I would like to click the button on the ASP.NET...
6
2723
by: guassian | last post by:
Hi, I am new to C programming. Is there way to read a 8 bit gray image using C language? Thanks and best regrads, Raj
1
1330
by: chandan | last post by:
Hi, I am in search of a control that can save image form my webpage. On that web page I am using my own context menu and I disabled the default context menu of IE. Now I want the same...
0
2480
by: hnpatel | last post by:
hello friends, i m making application in vb.NET. i m using MY SQL 5.0 and vs 2005 for this application. Now I want to save image file in sql database. i m using blob datatype of image field. i...
2
5737
jamesd0142
by: jamesd0142 | last post by:
Private Sub SaveResized() Dim bm As New Bitmap(PictureBox1.Image) Dim myX As Integer Dim myY As Integer myX = 640
6
4007
by: Jerry Spence1 | last post by:
I am using a network camera that saves the image in a byte array in memory (via their ocx component, and in the OnNewImage event I can get the pointer to the image and the byte length as...
1
2846
ranjana1980
by: ranjana1980 | last post by:
In my project of desktop application using c#.net save image in database during registration of student But it is not mandatory.Without Browse the image i click on insert button it gives error "Empty...
1
2772
by: sushant191 | last post by:
Hi Everyone , can any one tell me, how to save image url path in variable using fckeditor built-in image browser for ex.(~/userfiles/image1.jpg). I m not uploading image from outside fckeditor. Pls...
2
7427
by: aznimah | last post by:
Hi, i need help on how to save the image that return from picturebox? basically the program works, 1)Read image (.png)--> load into pictureBox1 2)Fire button save to save the image from...
0
6998
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7200
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6884
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5460
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4904
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4586
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1416
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
651
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.