I’ve successfully saved video files into SQL server as varbinary. Now, my problem is, how can I play those videos in Windows Media Player (embedded in my Windows Forms).
I’ve searched the internet but got no luck. Any idea?
Thanks in advance!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Read from the database and write it to a temp file when a video is to be viewed. Then you can set the URL property to the temp file’s full path like normal. If you don’t want the file to remain you can clean up after viewing, otherwise I might keep it to speed up future views. Just in case, here’s MSDN on embedding the Windows Media Control with VB.