Click here to Skip to main content
15,888,046 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi all,

i want to play video from MemoryStream or byte Array in c# windows application
i am save video file byte[] in sql database. datatype of column is varbinary(MAX).
i am using axWindowsMediaPlayer from WMPlib in c# .netFramwork 4.0 (visual studio 2010)
my requirement is play video from MemoryStream or byte Array without create any temp file or any other file in any location.

i saved video file byte[] in sql and read that byte array at run time from sql and play video.

NOTE:- PLAY VIDEO FROM MEMORYSTREAM OR BYTE ARRAY WITHOUT CREATE ANY TEMP FILE OR ANY OTHER FILE IN ANY LOCATION.


please help me.. it's urgent....

thank you in advance.
Posted
Updated 28-Nov-16 15:07pm
Comments
ZurdoDev 3-Jun-14 12:43pm    
Have you searched the articles on this site? Also, where are you stuck?
Muli G. 5-Jun-14 10:44am    
Try to use this:
http://www.dotnetfunda.com/forums/show/6847/play-video-from-memory-stream-or-byte-array

Good luck :)
[no name] 6-Jun-14 0:40am    
thank you all for the reply and solution hint, but i not get proper solution of my problam..
i also visit and try given above link but my problem is not solved.
please help.. thank you.

1 solution

Create an ActiveX control and embed Windows Media Player. Once you have the Windows Media Player embedded in your application, you can set the URL property of the component and you will be able to see your component is loading the video from the URL.

Otherwise, you will need to stream it from a server or create a temporary file and play it from there.
 
Share this answer
 
Comments
Dave Kreskowiak 28-Nov-16 22:42pm    
You resurrected a question that was answered TWO AND A HALF YEARS AGO for a solution that is questionable at best?

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