Android Question ftp images fail

Kahapdos

Member
Licensed User
hi good day
I'm trying to upload an image via ftp.
and the image if you upload to the server but arrives damaged.

the image if it exists in the specified directory but arrives damaged.
which may be the cause?


B4X:
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("captura")
ftp1.Initialize("ftp1","ftp.xxxxx.com",21,"xxxxxxxxxxxxxx","xxxxxxxxxx")
End Sub

Sub Button2_Click
ftp1.UploadFile(File.DirRootExternal,"1.jpg",True,"/1.jpg")
ftp1.Close
End Sub
 
Last edited:

Kahapdos

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

Are you handling the UploadCompleted event?
Yes I use uploadcompleted event but the picture arrives damaged.
the image on the server has the correct weight, but damaged and can not open
 

pascalv

New Member
Licensed User
Please, tell us how to set the AsciiFile parameter to false ? ( using Net library)
Tks

SOLVED using NetExtras library...
 
Last edited:
Top