Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8183433
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T01:09:33+00:00 2026-06-07T01:09:33+00:00

On my web server I have a video file named 03.mp4 . I have

  • 0

On my web server I have a video file named 03.mp4.
I have a page (videoserver.aspx) to serve that file using below code

Response.ContentType = "application/octet-stream";
Response.AppendHeader("Content-Disposition", "attachment; filename=video.mp4");
Response.TransmitFile(Server.MapPath("03.mp4"));
Response.End();

Whats the difference between these 2 calls?
1: http://localhost/media/03.mp4
2: http://localhost/media/videoserver.aspx?q=03

When I point to those URLs directly in my browser, it prompts me a Save dialog in both the cases.
I have another web page that has a SWFObject. It consumes a video as input. Ok. When I feed it URL 1, it loads the video.
When I feed it URL 2, it doesn’t load the video.

Why this difference? I prefer URL 2 as you can dynamically change the videos you are serving to consumers based on the query-string.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T01:09:35+00:00Added an answer on June 7, 2026 at 1:09 am

    Hence it proves I am a newbie to SWFObject.
    The SWFObject I was referring to was dished out by Camtasia and it accepts a mp4 file thru FLashVars.
    The question is “why did it not accept URL 2 while it accepted URL 1?”. To which the answer is, URL 2 was not ending with .mp4.
    And solution to my problem then was, create a handler that would accept */media/*.mp4 path and return the appropriate file’s content, which in my case is fetched from DB.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How do I put server-side webcam video on my web page? I'm using PHP,
for a C++ Web-Server I have to generate session id's. I thought of using
I have a web server located in Switzerland and it is intended to serve
Say I have a web page like this on an Ubuntu 12.04 web server
Problem: I have code on my developer machine that can successfully publish a video
I have a video as a background to a web page, and I am
I'm trying to set up a web server that will support streaming video to
I have a web application where I play back video. I am considering using
I'm designing a server application that stores a live H.264 video stream as MP4
I've set up Nginx as my main web server and have two Mochiweb based

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.