Re: .wav file oddity



Andy Mabbett wrote:


On:

<http://www2.birmingham.gov.uk/cs/Satellite?c=Page&cid=1165902603265&;
pagename=Birmingham.gov.uk%2FBCCLayout>

(aka: <http://tinyurl.com/3bfuf7> )

there is an image of an ear, which links to a 57-second, 2.5Mb, .wav
file.

Selecting the link in IE causes the file to play on the default player,
and downloading from that link saves a .wav file named "Satellite" (with
no file extension).

Doing so in Opera has the same results.

In FireFox, though, the file plays for only a second or so. Saving it
from Firefox saves it as an HTML file, also called "Satellite" (and
again with no file extension).

At first, I thought the issue could came from an incorrect Content-Type specification (e.g. text/html), but, with a manual HTTP request, I noticed that the Content-Type is audio/wav.
audio/wav is an unregistred type, very specific to Microsoft. The format itself isn't portable. The type may be unrecognized by many user agents. To ensure that your site is accessible on any OS with any browser, you should choose a widely recognized format, not Microsoft wave. Moreover, uncompressed audio files are inapproriate on the Web, where bandwidths are often limited.
Registred audio types are described at: http://www.iana.org/assignments/media-types/audio/

Anyway, the current problem with FF on the Windows OS is due to an oddity of the file type system.
The file format is recognized by the file extension on Windows.
Opera (and maybe IE) use local conventions to designate the format of resources, by mapping MIME types of web resources to file extensions, when saving such resources on disk. In other words, they choose the local file name from the last part of the URI, stripping the part after the '?' which typically identifies form requests, and appending an extension defined by the MIME type.
For the link http://www2.birmingham.gov.uk/cs/Satellite?blobcol=urldata&blobheader=audio%2Fwav&blobkey=id&blobtable=MungoBlobs&blobwhere=1174900262391&ssbinary=true, Opera uses the file name Satellite.wav by default.
By default FF 2 don't add this extension when saving the file (the default file name is Satellite). However, it adds the .wav file extension when opening the resource. So, I'm not able to reproduce your problem.

BTW: These URI are incredibely ugly, complex and likely to change! Please, *design* your URI, otherwise you'll follow the evil path of error 404.
--
If you've a question that doesn't belong to Usenet, contact me at <tabkanDELETETHISnaz@xxxxxxxxxxxxxxxxxx>
.



Relevant Pages

  • Re: About File "types" and Office 12.1 Service Pack and double-clicking
    ... in a file format that nobody is actually using. ... Remember that when you are Microsoft and you are selling to the Defence ... use your application to fire "pinball attacks" around the system. ... If the file type is blank, Word will assume the extension is correct and try ...
    (microsoft.public.mac.office.word)
  • Re: Newbie: Saving as Word doc
    ... I've inherited a VB app that experts here say is poorly written. ... Merely changing a file's extension does NOT "convert" that ... application has to support the file's format). ... > goes back into the folder, opens every doc, and resaves it as a Word doc. ...
    (microsoft.public.vb.general.discussion)
  • Re: Get_Video from Youtube
    ... YouTube is well known to use Flash video (.flv) as its standard format, ... The same could happen if the extension and/or MIME type is not known by ...
    (comp.sys.mac.apps)
  • Re: OT: Rob Short: Operating System Evolution
    ... How the<4 letter word that begins with H and ends with ELL> is one ... supposed to know that some proprietary Microsoft format is a zip archive? ... A .docx file is a zip file containing XML files. ... You can use any extension you like and it has little or nothing to to ...
    (comp.os.vms)
  • Re: if I send a docx as an attachment it converts to a wps.
    ... Word MVP web site http://word.mvps.org ... He opened a .docx extension file in Word 2003. ... not the actual format of the ...
    (microsoft.public.word.docmanagement)