Skip to content

Content type for a video file

George George

Asked Dec 8, 2008, 8:00 PM EST4 answers
Share
LinkedInX

Hello everyone,

Any idea about how to get the content-type for a video file? I am writing an ASP.Net application which writes video binary content back to browser client to invoke related media player, and needs to fill-in the content-type field of response header.

thanks in advance,
George

4 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • Bechir Bejaoui
    0
    What's the final purpose behind that?
    0
  • 0

    At server side, I have some video cached in memory (stored as byte[]) and want to write them back to client in order to trigger client to play a video.

    In order to do that, I think I need to fill the content-type response Http header, correct? This is why I asked this question. Any ideas?

    regards,

    George

    0
  • Bechir Bejaoui
    0
    Question, those byte files are retrived from a data base I suppose?
    0
  • 0

    It is read from file (video files). Any ideas to my original question? Thanks.

    regards,

    George

    0