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!!!

