We don't know what kind of OutputStream you are using, but my guess is that you need to flush() it.
On Apr 13, 3:25 pm, Hitendrasinh Gohil <[email protected]> wrote: > hi, > > i am just writing one file from other file,but last 7 or 8 bytes are > missing.i am using below code to write the file. > > buf= new byte[4096]; > int numRead = 0; > while ((numRead = is.read(buf))>0) { > os.write(buf, 0, numRead); > } > > can anyone tell me what could be the reason? -- 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

