Re: downloading/uploading file from/to smb share
Michael B Allen <[email protected]> Sat, 15 Dec 2012 17:12:58 -0500
| Newsgroups | gmane.network.samba.java |
|---|---|
| Message-ID | <CAGMFw4gAy8GjrNQs42Jkgmwhne5VMHXFnz5EB9gNpDqHTpVsPg@mail.gmail.com> |
On Sat, Dec 8, 2012 at 5:11 AM, Pravink <[email protected]> wrote: > downloading/uploading file from/to smb share can be done from read(), write() > api by using byte buffer. but it takes too much time to download or upload. is > there any other apporoach which will improve the performance? > > reading, writing byte by byte causes my server to goes down when file is in MB's Hi Pravink, You definitely should not read and write one byte at a time. That will indeed be slow. You want to read / write big chunks. See examples/Put.java. Mike -- Michael B Allen Java Active Directory Integration http://www.ioplex.com/