First of all Audio based Applet != Servlet.  Maybe a little lost?

Now since I'm in a fairly generous mood so I'll toss a quick bone.

I haven't worked with the Audio packages but with that said have you
tried just a regular good ol' BufferedInputStream?  In the past I've
had to move very large audio files and have had no a problems when with
the BufferedInputStream.

So if you are insistant on using AudioInputStream please read the docs.

http://java.sun.com/j2se/1.3.0/docs/api/javax/sound/sampled/class-
use/AudioInputStream.html

Oh and BTW -in future when posing a code based question (to an
appropriate list of course) post code with the question and take this
to a "more" appropriate list.



----- Original Message -----
From: Ovais Ahmad Khan <[EMAIL PROTECTED]>
Date: Wednesday, June 20, 2001 2:46 pm
Subject: audio data

> hi,
>
> i want to transfer some audio data recorded in an applet to the
> servlet.
> the data on the applet is in a AudioInputStream. i used it's write
> method to write the data to the URL connection's output stream.
>
> now on the servlet i used the request's input stream to construct an
> AudioInputStream. and from there i'm saving it to the file, but this
> file here has
> nothing but great noise. The size of the file is the same but the file
> is somehow corrupt.
>
> can any one guide me as to what is going wrong here. does there exists
> some other way of achieving this task.
>
> --
> Ovais
>
> There are three kinds of people in the world, those who can count, and
> those who can't.
>
>
________________________________________________________________________
___
> To unsubscribe, send email to [EMAIL PROTECTED] and include in
> the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http:
> Resources: http://java.sun.com/products/servlet/external-
> resources.htmlLISTSERV Help:
> http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to