You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
so i tryed to copy a picture with jcifs to my smb shared folder and it took me 4h for 100kb picture i then tryed with es files and there it was instanlty
here is my code
protected String doInBackground(String... params) {
File file = new File(filestocopy);
String filename = file.getName();
NtlmPasswordAuthentication auth1 = new NtlmPasswordAuthentication(
servername, username, password);
try {
SmbFile sfile = new SmbFile(servername + "/" + filename, auth1);
if (!sfile.exists())
sfile.createNewFile();
sfile.connect();
InputStream in = new FileInputStream(file);
SmbFileOutputStream sfos = new SmbFileOutputStream(sfile);
byte[] buf = new byte[1024];
int len;
while ((len = in.read(buf)) > 0) {
sfos.write(buf, 0, len);
}
in.close();
sfos.close();
The text was updated successfully, but these errors were encountered:
DirtyNightmare
changed the title
ekstremly slow performance
ekstremly slow performance to being usefull
Aug 15, 2016
DirtyNightmare
changed the title
ekstremly slow performance to being usefull
ekstremly slow performance
Aug 15, 2016
DirtyNightmare
changed the title
ekstremly slow performance
extremely slow performance on upload
Aug 15, 2016
so i tryed to copy a picture with jcifs to my smb shared folder and it took me 4h for 100kb picture i then tryed with es files and there it was instanlty
here is my code
The text was updated successfully, but these errors were encountered: