Android Question SMB DownLoad File Error

bocker77

Active Member
Licensed User
Longtime User
SMB is working where I get file names back with the ListFiles statement but when trying to download a file it gets the following error.
error Download failed : (SmbException) jcifs.smb.SmbException: The system cannot find the file specified.

I pause the program after a WriteStream statement and see the file in the DirDefaultExternal path with data. So I know it exists. I decided to use a timer and pause for 1 second and it still gets the same error. Can someone inform me of what I am doing wrong?

fleOut = File.OpenOutput(File.DirDefaultExternal, "GameMap.png", False)
cvsCanvas.Bitmap.WriteToStream(fleOut, 100, "PNG")
Timer1.Initialize("Timer1", 1000)
Timer1.Enabled = True
SMB1.DownloadFile("smb://192.168.1.103/Share/", "GameMap.png", File.DirDefaultExternal, "GameMap.png")

Another thing that I see odd is that once I get the error I check the file and now it has no data - 0 bytes.
 
Top