Friday, September 17, 2010

[android-developers] Re: Reading webpage data

Hi, John Thanks for your reply.I had tried it but it gives me error
If I used as
while ((size = in.read(buffer, 0, buffer.length)) != -1)
Then here read() method requires first parameter as char[] not a
byte[]. If I changed byte[] buffer = new byte[2048]; to char[] buffer
= new char[2048];
Then at the time of writing file as baos.write(buffer, 0, size) ;
requires byte[]instead of char[].

Now how to solve this. thanks

--
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
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate