Click here to Skip to main content
15,911,711 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello i want to know if there is a way to save content of a picturebox into a .xml file... and then open it with and openfiledialog... can you give some tutorial or something?

THANKS
Posted

You can convert the image (byte array) to Base64 encoding[^],
and then save the Base64 string in XML.
When needed decode from Base64[^] string to image.
 
Share this answer
 
v2
Comments
Sergey Alexandrovich Kryukov 22-May-11 1:01am    
This is the way to go, my 5.
--SA
Kim Togo 22-May-11 1:58am    
Thanks SA
You can store a CDATA block in your XML, and serialise your image. Why do you need to do that ?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900