开发者

Convert Song Object to bytes WP7

开发者 https://www.devze.com 2023-03-10 01:52 出处:网络
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#.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消