Sure.Keep in mind using a ByteBuffer may not be efficient way of doing it.

Below is the fixed line of code :
        DefaultHttpClient httpclient = new DefaultHttpClient();
HttpGet httpGET= new HttpGet(this.URL);
 HttpResponse res=httpclient.execute(httpGET);
HttpEntity entity=res.getEntity();
InputStream is=entity.getContent();
BufferedInputStream bis = new BufferedInputStream(is);
int current = 0;
 ByteBuffer bf = ByteBuffer.allocate(500);
StringBuffer buff=new StringBuffer();
while((current=bis.read())!= -1 )
{
bf.put((byte)current);
 buff.append((char)current);
 }


On Sun, Oct 12, 2008 at 3:56 AM, Bill Zimmerly <[EMAIL PROTECTED]>wrote:

>
> Thanks for the reply, Badri.  :)
>
> If you wouldn't mind, can you post the fixed code so that others can
> learn from your example?
>
> >
>


-- 
--Badri
"Cant keep my eyes from the circling skies Tongue-tied and twisted just an
earth-bound misfit, i"

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to