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 anothe开发者_运维百科r 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.
精彩评论