开发者

Stream mp3 file over aSynchronous server/client

I have a server/client setup that uses aSynchronous sockets. Now i also want to stream a mp3 thats saved local on the server to the client. I've searched the forum but haven't found a solution yet. Could someone push me in the right direction?

If someone has a better option then the above feel free to comment :)

Thanks 开发者_如何转开发in advance!


You have pretty much answered your own question with the terms used. ;-)

You can load the *.mp3's on the server into a FileStream. With that in mind, you can probably guess and google the rest, streaming the mp3 will be no different to transferring any other file type.

There are a few complexities involved in transferring streams, so I strongly recommend you review the following couple links:

MSDN Article on Large Data Transfers with WCF

WCF Service File Transfer Example

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜