DestroShark
Member
When I upload files to my FTP server, they are uploaded there "broken". Garbage appears instead of the expected audio track. Is this a problem with the server itself or am I doing something wrong? files are mp3 audio messages that I record using the VoiceRecording library
I would be glad for any help, thanks
I use this code for upload files:
And this one for dowload it
I would be glad for any help, thanks
I use this code for upload files:
B4X:
Sub FTP_UploadProgress (ServerPath As String, TotalUploaded As Long, Total As Long)
Log("#########################FTP_UploadProgress")
Dim s As String
s = "Uploaded " & Round(TotalUploaded / 1000) & "KB"
If Total > 0 Then s = s & " out of " & Round(Total / 1000) & "KB"
Log(s)
End Sub
Sub FTP_UploadCompleted (ServerPath As String, Success As Boolean)
Log("#####################FTP_UploadCompleted")
Log(ServerPath & ", Success=" & Success)
If Success = False Then Log(LastException.Message)
End Sub
And this one for dowload it
B4X:
Sub FTP_DownloadProgress (ServerPath As String, TotalDownloaded As Long, Total As Long)
Dim s As String
s = "Downloaded " & Round(TotalDownloaded / 1000) & "KB"
If Total > 0 Then s = s & " out of " & Round(Total / 1000) & "KB"
Log(s)
End Sub
Sub FTP_DownloadCompleted (ServerPath As String, Success As Boolean)
Log(ServerPath & ", Success=" & Success)
If Success = False Then Log(LastException.Message)
End Sub