I want to use any java method which takes url and give me response of server. Why I am doing so is I am using java.util.zip which takes sbyte[] earlier I was getting byte[] (when I was using httpWebRequest and httpWebResponse) and if i was trying to make this conversion byte[] to sbyte[] file which i m getting from server is getting damaged.So what I am thinking is if I can send url to any java method which can give me response back we can directly add this output stream to zipinputstream. The code which I was using earlier is HttpWebRequest hReq = (HttpWebRequest)HttpWebRequest.Create(ReqUrl); HttpWebResponse hResp = (HttpWebResponse)hReq.GetResponse(); Stream str = hResp.GetResponseStream(); MemoryStream output = new MemoryStream(); int nBytesRead = 0; byte[] buffer = new byte[1024]; while ((nBytesRead = str.Read(buffer, 0, 1024)) > 0) { //Read the stream until the end of file in chunks of 1024 bytes output.Write(buffer, 0, nBytesRead);//Write the currently read bytes into the MemoryStream } hResp.Close(); output.Close(); return output.ToArray(); // This .ToArray() method gives me byte[] while i want sbyte[] Any equivalent method in java can help me out. Prateek Gupta.