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 3974164
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T04:32:10+00:00 2026-05-20T04:32:10+00:00

I was developing an application which can receive a url of a file, and

  • 0

I was developing an application which can receive a url of a file, and should do different things depending on the type of the file (audio, video, image). So I’m getting the content type of the file in this way:

URLConnection connection = url.openConnection();
connection.connect();
String contentType = connection.getContentType();

I’ve tried with some jpg and mp3 files and the content type is the expected one, but I’m having a problem with a video in this web (I just used it by chance) http://www.yo-yo.org/mp4/ I’ve tried it with the video TestFour (http://www.yo-yo.org/mp4/yu5.mp4) and I’m getting the following content-type:

text/plain; charset=UTF-8

I expected to get "video/mp4".

Can anyone explain why I’m getting this content type?

Thanks.

UPDATE

I have also tried with another video at http://people.sc.fsu.edu/~jburkardt/data/mp4/claw_pix_example01_movie.mp4 and it happens the same.

Also the same with http://www.easydnnsolutions.com/Portals/0/EasyGalleryImages/1/18/Alice_in_Wonderland_Teaser_1.mp4

In all of them I’m getting the same content type.

  • 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-05-20T04:32:10+00:00Added an answer on May 20, 2026 at 4:32 am

    The server MIME configuration is likely incorrect and the source of the problem.

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

Sidebar

Related Questions

i am developing an application which can play youtube video in webview using iframe.
I am developing an web application which can upload/download a file from client to
I am developing application in PHP which takes video file. I am giving serverside
I'm developing an application via which one can send sms by directing it to
I'm developing an application which has a lot of text and also different modules
i am developing application which send and receive data between two computers but there
I am developing one application which needs the gmail user authentication? How can I
I am developing an application for ipad which is dealing with image views, bitmap
I want to developing an application which can but the mobile auto silent at
I am developing an application that can stream videos. As per requirement it should

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.