InputStream.read(buffer) doesn't guarantee you'll read exactly buffer.length
bytes. You must use the value returned by read to actualy see how much was
read.

On Tue, Aug 11, 2009 at 9:51 PM, Vermouth <[email protected]> wrote:

>
> > you have to check how many bytes in.read() actually read
> Hum...
> I don't understand ^^ ! Sorry ^^ !
>
> After "in.read(buffer);", in stop reading ! And it have read
> buffer_size bytes !
> >
>

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