H hasexxl1988 Active Member Licensed User Longtime User Oct 26, 2016 #1 Hello, i have Problems with FileDownload. The Test Picture is Damaged. I have tryed the Code from Erels Tutorial (https://www.b4x.com/android/forum/threads/android-ftp-tutorial.10407/#content) Upload is Correct with this Code (have Opened the Picture on FTP Server with FileZilla): Code: Copy FTP.UploadFile(File.DirInternal, "testpic.jpg", False, "testpic.jpg") However, the image will be Destroyed during the download and will not open. i have tryed: Code: Copy FTP.DownloadFile("testpic.jpg", True, File.DirInternal, "testpicdown.jpg") AND Code: Copy FTP.DownloadFile("testpic.jpg", False, File.DirInternal, "testpicdown.jpg") Image Size is 100% to Same. Does anyone have a suggestion?
Hello, i have Problems with FileDownload. The Test Picture is Damaged. I have tryed the Code from Erels Tutorial (https://www.b4x.com/android/forum/threads/android-ftp-tutorial.10407/#content) Upload is Correct with this Code (have Opened the Picture on FTP Server with FileZilla): Code: Copy FTP.UploadFile(File.DirInternal, "testpic.jpg", False, "testpic.jpg") However, the image will be Destroyed during the download and will not open. i have tryed: Code: Copy FTP.DownloadFile("testpic.jpg", True, File.DirInternal, "testpicdown.jpg") AND Code: Copy FTP.DownloadFile("testpic.jpg", False, File.DirInternal, "testpicdown.jpg") Image Size is 100% to Same. Does anyone have a suggestion?
Erel B4X founder Staff member Licensed User Longtime User Oct 27, 2016 #2 The AsciiFile parameter should be false. You should handle the DownloadCompleted event. If Success is true then the file was downloaded successfully. Upvote 0
The AsciiFile parameter should be false. You should handle the DownloadCompleted event. If Success is true then the file was downloaded successfully.
H hasexxl1988 Active Member Licensed User Longtime User Oct 27, 2016 #3 Erel said: The AsciiFile parameter should be false. You should handle the DownloadCompleted event. If Success is true then the file was downloaded successfully. Click to expand... Success is True in the Log. I have try with AsciiFile Parameter False FTP.PassiveMode is False. If i try True Success is False Upvote 0
Erel said: The AsciiFile parameter should be false. You should handle the DownloadCompleted event. If Success is true then the file was downloaded successfully. Click to expand... Success is True in the Log. I have try with AsciiFile Parameter False FTP.PassiveMode is False. If i try True Success is False
Erel B4X founder Staff member Licensed User Longtime User Oct 27, 2016 #4 1. Maybe the image itself is the problem. 2. Which error do you get when you try to load the bitmap? 3. Maybe you are loading the wrong file. 4. Copy the image file to the PC and compare it to the original image. Upvote 0
1. Maybe the image itself is the problem. 2. Which error do you get when you try to load the bitmap? 3. Maybe you are loading the wrong file. 4. Copy the image file to the PC and compare it to the original image.
H hasexxl1988 Active Member Licensed User Longtime User Oct 28, 2016 #5 The Server was the Problem Upvote 0
KMatle Expert Licensed User Longtime User Oct 29, 2016 #6 hasexxl1988 said: The Server was the Problem Click to expand... It would be helpful for others if you explain what the problem was Upvote 0
hasexxl1988 said: The Server was the Problem Click to expand... It would be helpful for others if you explain what the problem was
H hasexxl1988 Active Member Licensed User Longtime User Nov 1, 2016 #7 KMatle said: It would be helpful for others if you explain what the problem was Click to expand... I dont know. Had only tested on a free webspace since it was not, and now I have a paid provider, there it goes. Upvote 0
KMatle said: It would be helpful for others if you explain what the problem was Click to expand... I dont know. Had only tested on a free webspace since it was not, and now I have a paid provider, there it goes.