Click here to Skip to main content
15,900,906 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
hello,
i need to store & retrive the videos from xml
Posted
Updated 27-Jan-12 2:07am
v3
Comments
[no name] 27-Jan-12 12:44pm    
Good for you. I'm sure your parents are proud.

For your next task, try asking a proper question.
ZurdoDev 27-Jan-12 16:59pm    
Nice.

1 solution

You can't "store" anything in xml since it isn't a persistence mechanism.

You can however put data into a XML string/stream and extract it.

Normally doing that with a video isn't a good idea because it probably misses the entire point of XML.

However one way to do it is.
1. Capture the video as bytes.
2. Encode the bytes using base64. This will be a string.
3. Add the string as an element in a XML doc.

To extract it reverse that process.
 
Share this answer
 
Comments
kingsa 30-Jan-12 13:02pm    
can u send code or any snippet

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