Closed Zibeug closed 4 years ago
Where is the exception coming from? Maybe show the full exception outout.
Also try:
file = share.openFile("2020 05 11-0101 - Export_Checks.xml", EnumSet.of(AccessMask.GENERIC_READ), null, SMB2ShareAccess.ALL, SMB2CreateDisposition.FILE_OPEN, null);
Worked perfectly thanks !
Hello,
I got a problem with SMBJ when I'd use method .openFile(). I have always a Exception : ACCESS_DENIED.
I just want to read the file and save into a class.
`public class LoaderXML extends AsyncTask <String, Void, String>{ private SMBClient smbClient; private Connection connection; private AuthenticationContext ac; private Session session; private ConnectionInfo connectionInfo; private File file;
}`
The configuration of my server is very simple, It's a windows server with an Active Directory and all user can read the file.
Can you maybe help me ?
Thanks and see you