Flushing wave file, error on IE

Hello there! I have the following servlet that works great on Firefox:
response.setHeader("Cache-Control", "no-store");
          response.setHeader("Pragma", "no-cache");
          response.setDateHeader("Expires", 0);
          response.setContentType("audio/x-wav");
          ServletOutputStream servletOutputStream = response.getOutputStream();
          servletOutputStream.write(textToAudio.generateAudioOutput(captchaString.toCharArray()));
          servletOutputStream.flush();
          servletOutputStream.close();Firefox downloads the file, but IE throws an error.
Any ideas?
Regards

Dear Simon:
Thanks for your reply.
I tried the pop-up blocker and compatible view but still the same problem. Also, i tried to lower the security settings of my IE to min but still the same issue. Additionally, i tried to remove unnecessary security options from IE but also the same.
Any idea?
Regards,
Ahmad Yasin

Similar Messages

  • .wav file error

    Hi ,
    i am trying to transmit the voice signal and receive the voice signal, at the output i am getting the error. can anyone resolve this
    i tried with the sine wave its working for voice  i am getting the error
    voice signal is .wav file
    Attachments:
    New Folder.zip ‏68 KB

    I'm not sure if the zip file contained the correct decryption sub VI, because I had to rewire the inputs, but I did get it to work.  If your version is correct and the decryption VI is wired up, check to make sure the file path to the .wav file is accurate.  When I ran it, the default value did not exist on my machine.  When I changed the path to another existing .wav file on my machine, I got no errors, and the filtered signal appeared as expected.  In case you were curious, here is the code that I updated. 
    Regards,
    Jake G.
    National Instruments
    Applications Engineer
    Attachments:
    New Folder.zip ‏120 KB

  • Converting WAV files to AAC  Error convert Can't read from or write to disk

    For several weeks I had no problem converting WAV files (from an Olympus Digital Recorder) to AAC format in iTunes, then one day I clicked "Convert Selection to AAC" and received the message "Error occured while converting the file. The disk could not be read from or written to." There is no Error # associated with the Error message.

    I recently spent over 14 hours converting all my CD songs to WAV. WAV conversion was the only one of two options available with my older Nero software, and MP3 conversion was not an option. I intended to make mixed CD's. By the time I was done, I had over 300 songs that take up over 17 GB in this WAV format.
    The thought of sitting even more endless hours making these CD's made me even more exhausted, and I realized that I should get with the times and get an MP3 player. So, I bought an iPod directly from Apple two days ago (12/16), and get this, MaclessInAZ, the sales person told me that I all my WAV files could be imported into my iPod with iTunes. (!!!)
    I am very glad to have read this thread before I got my iPod. I would have been so upset if there was no easy solution. My new iPod is supposed to be delivered tomorrow, and I am looking forward to getting it. Many thanks to weavercs for the information on the Switch program that converts WAV to MP3. Even if I decide to buy the full version of Switch, it is a lot less expensive than other conversion programs that I just found online, like Roxio.

  • Error Playing .wav file on RHEL 4 using JMF

    Hi,
    We are using jmf api to play wav files on our application deployed on rhel version 4. But we are receiving the following error
    **"Cannot find a Processor for: myfolder/myAudio.wav" --->
    this exception is comming from javax.media.Manager
    throw new NoProcessorException("Cannot find a Processor for: " + source);"**.
    Any ideas what could be issue with this, am I missing some drivers/processor for wav files? I did a default jmf studio installation.
    Thanks and Regards
    Vikram Pancholi
    Edited by: vpancholi on Sep 8, 2009 8:51 AM

    If we take a look at the supported formats page...
    [http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/formats.html]
    And the WAV file is supported by the cross-platform pack, AKA, jmf.jar.
    If you're unable to open a WAV file, I'd say it's most likely because you don't have JMF.jar on your library path. You can fix that at runtime with the switch -djava.library.path=<whatever>
    That's what I would say the issue is.

  • All my audio (WAV) files got destroyed by "Metadata writing in progress" error. Help please?

    I am running Adobe Premiere CS6.03 which is the most current update I believe. I am running Windows 7 64bit with 16GB RAM 3.60 GHz quad core.
    When I tried to save my project I got the error "Metadata writing in progress (2 files pending). If you quit before writing is complete, data will be lost. Are you sure you want ot quit? "
    I waited 30 minutes but nothing changed. So I just accepted and exited. Then when I reopened the project all the sound looked like this:
    They are WAV files from a Zoom H4N. The video files work perfectly. For some reason it's just the audio files that got destroyed. The actual original WAV files itself are fine it's just that particular sequence, in fact I can pull the original audio files from the project tab into the same sequence and they will play. It would take me ages to reconstruct the audio sequence piece by piece. I tried "Replace Footage" which didn't work and I tried linking the media all over again which didn't work. I've been working on this project forever. Is there any fix for this?

    If you have "save media cache next to originals when possible" ticked in your preferences then you might need to delete the .pek files that Premiere generates from the folder that your wav files are in. Premiere will make a new one, and I've found this has fixed similar audio issues that I've had in the past.
    Otherwise, open a new project and then import the sequence from your old project into it, and see if that fixes it.

  • Hi, I am getting an 'Error 4810 occurred at Sound File Read Open.vi' for the attached wav file (plus many other wav files). Any ideas?

    Hi,
    I am getting an 'Error 4810 occurred at Sound File Read Open.vi' for the attached wav file (plus many other wav files).
    Any ideas?

    No attachment exists.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Unable to decode and import the selected wav/mp3 file" error in Captivate 4

    Good afternoon.
    I have exported and edited the audio from a Captivate presentation in Soundbooth. After editing, I save the file as a .WAV. When I import the file to the slide, I recieve the error message listed above.
    I have followed other threads in the forum and performed the following:
    XP Pro (32 Bit - SP3)
    E-Learning Suite
    Captivate 4
    Soundbooth CS4
    Downloaded and installed new NSAudio.dll
    Successfully registered NSAudio.dll
    Have successfully ran the restoreCP4regentries.bat and the restoreRegPermCP4.bat
    Rebooted the computer
    Ran the program as an adminstrator (although it asked me to re-register the product -a little strange)
    I still recieve the error when I try to import the WAV files. If I convert the files to MP3, they can be imported. At this time I'd prefer to not import them as MP3.
    WAV format is uncompressed, 44, 32 floating bit (I also unsuccessfully tried other bits).
    I've lost an entire afternoon of productivity to this.
    Any thoughts on how to resolve this? It appears I have followed all the recommendations I have seen so far.

    Hi there
    I believe Captivate is a bit persnickety about the WAV format. You will likely need to adjust some setting with the WAV output. You might begin by trying the following and see if it resolves.
    Begin with a backup copy of the audio clip
    Open basic Windows Sound Recorder
    Open the WAV file with the issues in Sound Recorder
    Click File > Save As
    Click the Change... button - make no changes and click OK (this should change to PCM format)
    Try importing the WAV file after that and see what happens.
    Personally, I'd be using the MP3 myself. Not sure why you are against it. After all, that's what will end up in your compiled result.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • WAV file will not import/Error

    While trying to import a file from a company that records our
    call center calls, I am getting the following error: "Unable to
    decode and import the selected WAV/MP3 file."
    Are there anythings I should look out for, or any way I
    should be prepping the Wave File?

    Welcome to our community, Ravenspoe
    Never More!
    Okay, so give this a try. Captivate expects .WAV files to be
    in PCM format.
    Click Start > Run...
    Type sndrec32 into the field and press Enter
    This should open the Windows Sound Recorder
    Within Sound Recorder, click File > Open... and open the
    suspect .WAV file
    Now click File > Save As...
    Click the Change... button
    Click the OK button
    Click the Save button
    Close Windows Sound Recorder
    Now try importing the WAV into Captivate and see if it
    imports without causing Captivate to squabble or gag.
    Cheers... Rick

  • Help - WAV files totally unreadable. in QT OSStatus Error -208

    Hello,
    I'm trying to open some wav files that I created in an older version of Pro Tools. I was unable to import them in neither Pro Tools (7.4.2) nor Logic (8). Tried Quick Time and got "OSStatus Error -208". The finder won't even preview them (using space bar). Also, the Pro Tools session itself was unreadable by the current version of Pro Tools.
    Is there any way to resurrect or convert them to make them playable?
    AtDhVaAnNkCsE
    (thanks in advance)
    j

    Jesse--
    Try using Flip4Mac. That should enable you to view them, but not edit them.
    Doc

  • Blackberry 8330 - can't play wav files - Red X and "unknown error occured"

    I have a client that started having an issue with her blackberry after we moved to BES Express 5.02.  Her .wav file association on her computer was changed so she couldn't play .wav files on her PC.  Then she stated getting a red X on her phone when trying to listen to the Cisco unity voice mail messages that are attached to emails.   
    I was able to correct the issue on her PC by re-associating the .wav file with windows media player.   However on the blackberry, the .wav file still will not play.  Is there a file association section on a blackberry device?  If not what else might be the issue?   she is the only person having the issue.  I don't use a blackberry so i don't know the menu options very well.
    Thanks
    Steve.
    P.S.
    Oh, The phone was factory reset before being added to the new BES, Service books and IT policy Applied correctly.   I could pull the phoen and reset it again but I don't know if that would correct the issue. 

    Hi - I am now having this same exact problem on my Mac laptop.   I have many Breaking Bad, etc TV shows that I purchased through itunes & have watched over the years & now all of those, as well as, any new shows I purchase will not play on my laptop.    Just same as above person -- a black screen that appears to be playing movie (the timer is actually playing)  but no video or sound.    Shows / Movies all work fine on my home computer.  
    On my laptop it keeps saying .. "Not authorized to play .... & then says  "Sign into Itunes.. "   - but I  do sign out & sign  back in & still nothing happens.   Very annoying and frustrating as I  can ususlly figure things out with perserverence and trial & error. 

  • "Input contract violation" error message when trying to import a .wav file into AE?

    I am trying to import a .wav file into AE and keep getting an "input contract violation" message from the program followed by it shutting down. If it means anything, I bought the song online, but it has been paid for and I downloaded the .wav file after my purchase. Any idea of why this may be happening? Are there any particular settings which may be mandatory on the project timeline to import a 3min song? Thank you!

    YOu have not provided any system info, not told us what version of AE you use, your audio setting, what specifics in the audio file and a million other things. See how it may not be possible for anyone to tell you anything beyond "Your computter sucks!" ???
    Mylenium

  • WAV file delete error

    Hello,
    I have written an application which has the feature to delete wav files.
    If the file is created then deleted, it all workds fine and the deletion is successful. However if the file is put through a 'play' method then deleted, then the deletion fails.
    I am unsure why this happens, so was hoping for some insight into the problem
    as for example code, here is the deletion method
    try {
                    if (toDelete.delete()) {
                        System.out.println(toDelete.getName() + " is deleted!");
                    } else {
                        System.out.println("Delete operation failed.");
                    }and here is the current play method
        public void playFile(File playFile) {
            try {
                AudioFormat audioFormat;
                AudioInputStream audioInputStream;
                SourceDataLine sourceDataLine;
                audioInputStream = AudioSystem.getAudioInputStream(playFile);
                audioFormat = audioInputStream.getFormat();
                int length = (int) (audioInputStream.getFrameLength() * audioFormat.getFrameSize());
                byte[] data = new byte[length];
                DataInputStream is = new DataInputStream(audioInputStream);
                try {
                    is.readFully(data);
                } catch (IOException ex) {
                    ex.printStackTrace();
                InputStream byteArrayInputStream = new ByteArrayInputStream(data);
                audioInputStream = new AudioInputStream(byteArrayInputStream, audioFormat, data.length / audioFormat.getFrameSize());
                DataLine.Info dataLineInfo = new DataLine.Info(SourceDataLine.class, audioFormat);
                sourceDataLine = (SourceDataLine) AudioSystem.getLine(dataLineInfo);
                sourceDataLine.open(audioFormat);
                sourceDataLine.start();
                int cnt;
                int totalBytes = (int) (audioInputStream.getFrameLength() * audioInputStream.getFormat().getFrameSize());
                byte[] tempBuffer = new byte[totalBytes];
                while ((cnt = audioInputStream.read(
                        tempBuffer, 0,
                        tempBuffer.length)) != -1) {
                    if (cnt > 0) {
                        sourceDataLine.write(tempBuffer, 0, cnt);
                sourceDataLine.drain();
                sourceDataLine.close();
                sourceDataLine = null;
            } catch (LineUnavailableException ex) {
                ex.printStackTrace();
            } catch (UnsupportedAudioFileException ex) {
                ex.printStackTrace();
            } catch (IOException ex) {
                ex.printStackTrace();
        }as I am trying to understand this new functionality, the play method is a mish-mash of my own code and online examples. so it would not suprise me if here is where the root of the problem is, but i cant see it hence the need for this post
    thanks in advance for any help!
    K

    First off, the first 30 lines or so of your playFile function could be replaced by the following single line:
                AudioFormat audioFormat;
                AudioInputStream audioInputStream;
                SourceDataLine sourceDataLine;
                audioInputStream = AudioSystem.getAudioInputStream(playFile);
                audioFormat = audioInputStream.getFormat();
                int length = (int) (audioInputStream.getFrameLength() * audioFormat.getFrameSize());
                byte[] data = new byte[length];
                DataInputStream is = new DataInputStream(audioInputStream);
                try {
                    is.readFully(data);
                } catch (IOException ex) {
                    ex.printStackTrace();
                InputStream byteArrayInputStream = new ByteArrayInputStream(data);
                audioInputStream = new AudioInputStream(byteArrayInputStream, audioFormat, data.length / audioFormat.getFrameSize());becomes
    AudioInputStream audioInputStream = AudioSystem.getAudioInputStream(playFile);And that'll likely fix the delete problem, which I would assume is a result of your code not properly closing all of the input streams (IE, you can't delete the file because it has an active readlock on it)

  • Unity Cxn 8 smtp relay - wav file name

    Hi,
    Just wondering if it possible to change the name of or date/time stamp the wav file sent when relay is used?
    i.e. instead of voicemail.wav -> voicemail_15:13_06062012.wav
    Regards,
    John

    Cisco has a document about this and it is a known issue in 8.x.  We asked for a work around and were told none existed.    This causes an errorr in Outlook after a user receives 100 VM's that causes an error and the temp folder needs to be flushed.  I don't have the document link.

  • C# ticking in my wav file

    I am trying to make a tone file and it is working. but it is not sounding the way I want it to sound. There is a low tone
    beat in the file. that I did not add to it. And I do not know why it is there..
    Someone told me to try fading out / fade in and not just going down to 0 and I did but it did not work.
    can anyone help me ?
    I just need to remove the ticking and output the right  Frequency
    here is my code: 
    double time = Convert.ToDouble(time2.Text) / 2.2675;
    time = time * 50000D;
    double Amplitude = Convert.ToDouble(Peaktxt.Text);
    SaveFileDialog save1 = new SaveFileDialog();
    save1.Filter = "Wave file (*.wav)|*.wav;";
    if (save1.ShowDialog() != DialogResult.OK) return;
    WaveFileWriter wavefile;
    wavefile = new WaveFileWriter(save1.FileName, tone.WaveFormat);
    double counter3 = 0;
    double tenp = 0;
    double Ptemp = Peak3 - 0.001D;
    int newcounter = 0;
    if (Beat3 != 0)
    Beat3 = (1 / Beat3);
    tenp = Beat3/(1D / 44100D);
    else
    Beat3 = 0;
    for (int n = 0; n < time; n++)
    if (counter3 >= Beat3 && Beat3 != 0)
    for (int t = 0; t < tenp; t++)
    if (Ptemp > 0.000005)
    float temo = (float)(Ptemp * Math.Sin((((Math.PI * n * (Frequency3))/2) / 44100D)));
    wavefile.WriteSample(Math.Abs(temo));
    wavefile.WriteSample(Math.Abs(temo));
    n++;
    Ptemp = Ptemp - 0.001D;
    newcounter++;
    else if ((tenp - newcounter) <= 0 )
    float temo = (float)(Ptemp * Math.Sin((((Math.PI * n * (Frequency3))/2) / 44100D)));
    wavefile.WriteSample(temo);
    wavefile.WriteSample(temo);
    n++;
    Ptemp = Ptemp + 0.001D;
    else
    wavefile.WriteSample(0F);
    wavefile.WriteSample(0F);
    n++;
    counter3 = 0;
    else
    float temo = (float)(Peak3 * Math.Sin(((( Math.PI * n * (Frequency3))/2)/44100D)));
    wavefile.WriteSample(Math.Abs(temo));
    wavefile.WriteSample(Math.Abs(temo));
    counter3 = counter3 + (1D / 44100D);
    Ptemp = Peak3 - 0.001D;
    wavefile.Flush();
    wavefile.Dispose();
    if (waveout == null)
    waveout = new WaveOut();
    waveout.PlaybackStopped += onPlaybackStopped;
    MixingSampleProvider mixer = new MixingSampleProvider(WaveFormat.CreateIeeeFloatWaveFormat(44100,2));
    audioFileReader = new AudioFileReader(save1.FileName);
    mixer.AddMixerInput((ISampleProvider)audioFileReader);
    SampleToWaveProvider mixer3 = new SampleToWaveProvider(mixer);
    try
    waveout.Init(mixer3);
    waveout.Play();
    timer1.Start();
    catch
    MessageBox.Show(" Error retry");
    waveout.Stop();
    waveout.Dispose();
    waveout = null;
    return;

    I am trying to make a tone file and it is working. but it is not sounding the way I want it to sound. There is a low tone
    beat in the file. that I did not add to it. And I do not know why it is there..
    Someone told me to try fading out / fade in and not just going down to 0 and I did but it did not work.
    can anyone help me ?
    I just need to remove the ticking and output the right  Frequency
    here is my code: 
    tone = new isochronicTone();
    tone.SetWaveFormat(44100, 2);
    double time = Convert.ToDouble(time2.Text) / 2.2675;
    time = time * 50000D;
    double Amplitude = Convert.ToDouble(Peaktxt.Text);
    SaveFileDialog save1 = new SaveFileDialog();
    save1.Filter = "Wave file (*.wav)|*.wav;";
    if (save1.ShowDialog() != DialogResult.OK) return;
    WaveFileWriter wavefile;
    wavefile = new WaveFileWriter(save1.FileName, tone.WaveFormat);
    double counter3 = 0;
    double tenp = 0;
    double Ptemp = Peak3 - 0.001D;
    int newcounter = 0;
    if (Beat3 != 0)
    Beat3 = (1 / Beat3);
    tenp = Beat3/(1D / 44100D);
    else
    Beat3 = 0;
    for (int n = 0; n < time; n++)
    if (counter3 >= Beat3 && Beat3 != 0)
    for (int t = 0; t < tenp; t++)
    if (Ptemp > 0.000005)
    float temo = (float)(Ptemp * Math.Sin((((Math.PI * n * (Frequency3))/2) / 44100D)));
    wavefile.WriteSample(temo);
    wavefile.WriteSample(temo);
    n++;
    Ptemp = Ptemp - 0.001D;
    newcounter++;
    else if ((tenp - newcounter) <= 0 )
    float temo = (float)(Ptemp * Math.Sin((((Math.PI * n * (Frequency3))/2) / 44100D)));
    wavefile.WriteSample(temo);
    wavefile.WriteSample(temo);
    n++;
    Ptemp = Ptemp + 0.001D;
    else
    wavefile.WriteSample(0F);
    wavefile.WriteSample(0F);
    n++;
    counter3 = 0;
    else
    float temo = (float)(Peak3 * Math.Sin(((( Math.PI * n * (Frequency3))/2)/44100D)));
    wavefile.WriteSample(temo);
    wavefile.WriteSample(temo);
    counter3 = counter3 + (1D / 44100D);
    Ptemp = Peak3 - 0.001D;
    newcounter = 0;
    wavefile.Flush();
    wavefile.Dispose();
    if (waveout == null)
    waveout = new WaveOut();
    waveout.PlaybackStopped += onPlaybackStopped;
    MixingSampleProvider mixer = new MixingSampleProvider(WaveFormat.CreateIeeeFloatWaveFormat(44100,2));
    audioFileReader = new AudioFileReader(save1.FileName);
    mixer.AddMixerInput((ISampleProvider)audioFileReader);
    SampleToWaveProvider mixer3 = new SampleToWaveProvider(mixer);
    try
    waveout.Init(mixer3);
    waveout.Play();
    timer1.Start();
    catch
    MessageBox.Show(" Error retry");
    waveout.Stop();
    waveout.Dispose();
    waveout = null;
    return;
    What am i doing wrong ?
    here is how it sounds:            https://onedrive.live.com/redir?resid=CC8AF223519E2440!119&authkey=!AAFtwo79tic33IA&ithint=file%2c.wav

  • Broadcast Wav files from PT to Logic not moving to original record position

    Okay, my system needs upgrading but I'm stable (at least I think I am til now!) I have a TV network sending me broadcast wav files from PT. They shoot their video on a 24 hour clock. I'm to be editing and mixing (in Logic) their audio tracks from PT and send them back as broadcast wav files for them to sync back to their video. After years and years of recording and producing music, this TV world is a first for me. 2 issues at hand that are causing trouble.
    NUMBER 1: The wav files will not snap to original record position. I keep getting an error message about "out of range" and of all craziness with a negative SMPTE number. ??? The prompt suggests an offset error. But there isn't I can find. Start time is set to 0:0:0.0.0 here and at the TV studio. They film at 29.97d. That matches as well. Sample Rate is correct at 48k 24bit. I've uncovered every thing I can think of. I did have to set the tempo down to 5 BPM in order to see a full 24 hours in SMPTE.
    NUMBER 2: I can't figure out how to see the timestamp start time of the audio files in the audio window. I have every option turned on in the VIEW option, I can see length, but I see nothing about start time of original record time. Am I missing something simple here? Seems like a very standard option that should be easily accessible. It would allow me to prepare the location on the time line.
    Overall, I'm hoping I can do all the above with my current rig but realize that the clock is ticking toward a whole new system with Logic 9.
    Help please. Don't want to lose this client.

    Sure do appreciate everyone's willingness to help. Setting SMPTE start to 24:00:00.0.0 didn't work either. I confirmed with the studio manager at the TV station also that they run a 24hour clock with 0 being midnight.
    I'm really hoping that the error is on their end.
    *It would help me if anyone knew how to VIEW the Timestamp info attached to the wav files. That would at least give me an approximate idea of where they should be.*
    I'm supposed to be editing and mixing the voice dialog from numerous different scene takes that were shot throughout a day of filming. It's critical that I can see all these different takes that were captured over hours of open recording. Some of the files are almost 4 hours long. It's a big project and I'm sure hoping I can stay inside Logic to get it all done with excellence.

Maybe you are looking for