Android Question FTP.UploadFileSet Not Working

davelt99

Member
Licensed User
Longtime User
My code is:
sFTP.Initialize(Activity,Me,IP Address,UserID,Password,21,True,False)
sFTP.SetCompletedUploadDialog(True,"Uploads Completed...")
sFTP.SetProcessCompleteOn(True)

sFTP.UploadFileSet("/uploads/",Array As String(File.DirRootExternal & "/7-150415110145.jpg",File.DirRootExternal & "/th7-150415110145.jpg"),False)

Which causes the error:
java.lang.ArrayIndexOutOfBoundsException: length=1; index=1

I can't figure out what is wrong.
I seem to be duplicating the example (except for wild cards) given for UploadFileSet.

Any help would be greatly appreciated.

Thank you,
 

davelt99

Member
Licensed User
Longtime User
Please use [code]code here...[/code] tags when posting code.

Which line causes this error?
This line:

[code]
sFTP.UploadFileSet("/uploads/",Array As String(File.DirRootExternal & "/7-150415110145.jpg",File.DirRootExternal & "/th7-150415110145.jpg"),False)
[/code],

Both files exist and this seems to be correct per the example given in the description.
 
Upvote 0

davelt99

Member
Licensed User
Longtime User


Looks like the wildcard is necessary. All works well when it is included, not working when it is missing.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…