problem with encoding..pls have a look at this.

i'm getting data posted to a servlet in this format.

Content-Type: application/octet-streamContent-Transfer-Encoding: binaryΦ♥ ☻ ☻

♥ de╚╔,☺ -☺ ?☺ ?#9786; ⌠☺ ⌡☺ X☻ Y☻ ╝☻ ╜☻ * ☺ ♂* S P E C C Y

~☻☺♥ ♀ ▬☺ ?S P E C C Y ~☻☻ ☺ ☻ ♂ ?▼ ☻ B S P E C C Y ~☻☺ ♥ ♦ ♫ ↑ " ☺

how can i get the string equivalent of this.?

i tried the following codes to receive the data.

InputStream in = request.getInputStream();

BufferedReader br =new BufferedReader(new InputStreamReader(in));

String strdata=null;

String receivedData="";

do

{

strdata=br.readLine();

if(strdata!=null)

receivedData+=strdata;

System.out.println(strdata);

}

while(strdata!=null);

byte[] receivedDataBytes=receivedData.getBytes();

Also i tried this

BufferedInputStream bis=new BufferedInputStream(in);

bis.read(data, 0, 330);

still its not working...pls help!!!

[1613 byte] By [xemaa] at [2007-10-3 9:46:43]
# 1
this is the code inside my servlet
xemaa at 2007-7-15 5:03:34 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...