Try using read instead:

                                byte[] buffer = new byte[2048];

                                ByteArrayOutputStream baos = new 
ByteArrayOutputStream();

                                while ((size = in.read(buffer, 0, 
buffer.length)) != -1) {
                                        total += size ;
                                        baos.write(buffer, 0, size) ;
                                }

Warning: code pasted from brain - could contain errors...

-John Coryat

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
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