简体   繁体   中英

Convert Song Object to bytes WP7

I want to save the audio data of Song object or an audio file as bytes and then read the bytes and save it as as another audio file in WP7 using C#.

Let me know if question is not clear enough.

As of now i don't see any way to do this.You can also check this post on msdn with the same query.

You can either:

Serialize / deserialize it manually using BinaryReader / BinaryWriter

OR

Save it as XML using DataContractSerializer and then get the bytes using Encoding.UTF8

I'd recommend the first as DataContractSerializer has overhead in both performance and serialized size.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM