0
J'écris un code android simple pour créer un fichier dans mon dossier SMB en utilisant jcifs. Mais je reçois l'exception suivante.jcifs.smb.SmbException: Un périphérique attaché au système ne fonctionne pas
jcifs.smb.SmbException: Un périphérique connecté au système ne fonctionne pas.
Voici mon code:
try{
String user = "X";
String pass ="X";
String sharedFolder="X";
String path="X/"+sharedFolder+"/test.txt";
NtlmPasswordAuthentication auth = new NtlmPasswordAuthentication("X",user, pass);
SmbFile smbFile = new SmbFile(path,auth);
SmbFileOutputStream smbfos = new SmbFileOutputStream(smbFile);
smbfos.write("testing....and writing to a file".getBytes());
System.out.println("completed ...nice !");
}catch(Exception e){
e.printStackTrace();
}