Questions tagged [smbj]

Use this tag if your question is related to Server Message Block (SMB2, SMB3) implementation in Java.

Server Message Block (SMB) is a network protocol for file, print and other services in computer networks.

The SMBJ is the Java implementation of this network protocol.

44 questions
0
votes
0 answers

AWS - upload a directory from Remote share to S3

We know the AWS transfer manager is able to copy directories to s3. But, is it possible for us to copy from a folder on remote SMBV2 share using a Java application? and we access that share using java library of smbj…
Raj
  • 125
  • 3
  • 17
0
votes
1 answer

Can I use Java to upload file to AWS S3 from SMB

I want to directly upload file from SMB to S3(AWS) use Java. Could you give me some advice to fix this issue. (Not download to local and upload to S3)
devbetter
  • 1
  • 2
0
votes
1 answer

How to properly use smbj to connect and list files on a samba share in Android java?

When I connect with smbj, error log shows: ... I/c.h.s.c.Connection: Successfully authenticated user on 192.168.1.222, session is 4399187361905 I/c.h.s.s.Session: Logging off session 4399187361905 from host 192.168.1.222 I/c.h.s.t.PacketReader:…
0
votes
0 answers

Write multipart file to remote server with SMBJ

I am new to SMBJ and i would like to know how do i write a file to an smb share using SMBJ found at https://github.com/hierynomus/smbj. I can create a text file with the following code but i want to write a multipart file from a form to a remote…
seristee
  • 1
  • 1
0
votes
1 answer

Does smbj API support SMB v3.x dialect versions?

Exception is thrown while opening SMB connection using smbj API. It says: "SMB 3.x support is not yet implemented". The exception is thrown from "SMB2NegotiateRequest.putCapabilities(SMBBuffer buffer)" method. Below is the code snippet that opens…
0
votes
2 answers

How can I stop async tasks that loops in background android after onPause() is called?

I'm using package com.hierynomus.smbj.share; to connect via smb2 to a network location in order to check it's connectivity however this only runs at the start of my activity (in background). I've added a listener to return after the task has…
Jube
  • 184
  • 2
  • 15
0
votes
1 answer

SMBJ Connection String

What is the format of the connection String(s) for SMBJ? Does anybody have an example? I know I'm probably overthinking this. I've tried different combinations, and it seems to complain when I use both forward and backward slashes. // trying to…
Eric
  • 143
  • 1
  • 3
  • 9
0
votes
1 answer

android: Is it safe practice to convert a large string to bytes and send across the network?

I get a file then convert it to string and replace some words. With this string I run the following: com.hierynomus.smbj.share.File remoteSmbjFile = share.openFile(fileName, EnumSet.of(AccessMask.GENERIC_WRITE), null, s, null, null); byte[] myFile=…
Jube
  • 184
  • 2
  • 15
0
votes
0 answers

How to generate a coordinate file for a specific dependency in gradle?

I am trying to generates the coordinate file for my project. The directory structure of my project is as follow. My build.gradle contains "compile 'com.hierynomus:smbj:0.9.0'" dependency. I have navigated to the 'sourceDir' path and I am trying the…
Vikas Kumar
  • 13
  • 1
  • 12
0
votes
1 answer

SMBJ: What is the SMBJ api to copy a directory containing files to my local machine

Can anyone please let me know what is the SMBJ API to copy folder/files from fileshare to my local machine ? Also, if possible can i get an example for the same ?
Vikas Kumar
  • 13
  • 1
  • 12
0
votes
1 answer

SMBJ and DFS and "Nested Session"

I have a project, where I am given an id, and then using that ID look up files paths and process them... these files are on various mounted drives, so I am using the SMBJ java libraries to access them. The problem I am having is that some (most) of…
Speckpgh
  • 3,332
  • 1
  • 28
  • 46
0
votes
1 answer

SMBJ: How to print all the files present in a particular subfolder

I am facing issue with printing all the file belonging to a particular sub folder in windows VM. Overview: I have got a windows VM whose IP address is 10.162.12.12 I want to print all the files name present under C:\MyFolder\MySubFolder Currently…
Vikas Kumar
  • 13
  • 1
  • 12
0
votes
0 answers

SMBJ no longer working when I modify JMX port settings

I have an application running under spring boot utilizing SMBJ to mount and read remote files, and it works perfectly. However I am trying to set up some datadog reporting and trying to use JMX as a datasource for datadog... TO do this I am…
Speckpgh
  • 3,332
  • 1
  • 28
  • 46
0
votes
1 answer

SMBJ throwing transport/eof exceptions

I am utilizing SMBJ to read sbm files, and while everything works, it is throwing, com.hierynomus.protocol.transport.TransportException: java.io.EOFException: EOF while reading packet Which I don't understand why, it appears to be closing…
Speckpgh
  • 3,332
  • 1
  • 28
  • 46
1 2
3