sathish subramanian wrote:
>
> if i were to read an audio file and do the POST to servlet with name value
> pair .. name been the name of the audio file and value been the content of
> the audio file, how would i do that?
> ...
> how can i do this? i tried the following code but the file created at the
> server was corrupt audio file. i DONT want to use multipart to do the file
> content transfer.
Base64 encode the file content before posting to the servlet. The
servlet will have to decode the string before storing the binary data to
disk. Here are three packages that have Base64 encoders/decoders:
http://www.tapsellferrier.co.uk/Servlets/FAQ/authentication.html
http://www.servlets.com/cos/index.html
http://www.javashareware.com/CFScripts/jcode.cfm (look for the mk.io
package)
___________________________________________________________________________
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