3

I have converted a video to bytes array and stored it in MsSql Database. Now I fetch it from database and I get the byte array. I want to set this byte array as Source of media element and then show this video in WPF application.

Please suggest a way where I can convert byte array or memory stream to Media Elements Source?

I will not have permission to write on users machine, so writing a file onto user machine and then setting the source will not work for me.

Soner Gönül
  • 97,193
  • 102
  • 206
  • 364
Akash Soni
  • 98
  • 1
  • 7

1 Answers1

2

That's not directly possible. Only the MediaElement from Silverlight supports that feature. There are some workarounds. Checkout this link.

Community
  • 1
  • 1
Matthias
  • 5,574
  • 8
  • 61
  • 121