Skip to main content

All Questions

Tagged with
-1 votes
0 answers
38 views

Trying to download a file from server using FTP, but exception arises explaining format of URI can't be determined

Please tell me what is wrong in this code. The FileService also throws downloaded file content is null or empty or format of the URI cant be determined. The Fileservice class seems to be working for ...
Achyut's user avatar
  • 1
0 votes
1 answer
74 views

Don't Understand Secondary Role of Stream.Read() While Downloading File

I made a button in WinForms to download file from FTP and it works fine but I don't understand what Stream.Read() method is doing in the while loop in the code below (in DownLoadFileFromFtp method): ...
Torrvic's user avatar
  • 77
-1 votes
1 answer
99 views

FTP Download on C#

I am trying to download files from Raspberry Pi with ftp protocol. I have to press a button to download a file Press the button and access to 'C:\Users\Monster\Desktop\ftp' is denied.' I'm getting an ...
furkank00's user avatar
0 votes
3 answers
218 views

C# Progress bar doesn't update while downloading

I am downloading a file from ftp server with a BackgroundWorker but the progress only updates when the file is already finished downloading. Progress bar stays at 0, freezes for the duration of ...
Adam Stück's user avatar
2 votes
2 answers
887 views

e.TotalBytesToReceive returns -1 [duplicate]

I have a ListBox that contains a list of DirectAdmin user backups. List is populated using WebRequestMethods.Ftp.ListDirectory and it looks like this: I can download an archive using the button at ...
akinuri's user avatar
  • 11.7k
1 vote
3 answers
848 views

URI whitespaces are converted to "%20" with WebClient.DownloadData

I am trying to download a file via FTP, using the WebClient class. The problem is, one of the directory comprising the file path on the FTP server contains whitespaces. And, even though my URI string ...
Ljotur's user avatar
  • 19
0 votes
1 answer
1k views

Without the connection to the ftp using c# [duplicate]

I can create a folder, I can rename the file, but I can not upload and download a file to ftp. The exception that is shown is System.Net.WebException: The remote server returned an error: (500) Syntax ...
Thiago Schulz's user avatar
2 votes
1 answer
1k views

Is it possible to ZIP a folder in FTP using C#?

How to zip a folder existing on an FTP server using C# code? Is there any alternate method to download files fast from FTP? I were using the below code to zip and download files from server. using (...
neethu's user avatar
  • 193
0 votes
1 answer
175 views

C# Select Directory, Default Directory

I'm very new to C#, I've done some Batch files and some stuff for a game called Arma 3 which uses SQF and C++. So please forgive my ignorance, I'm trying to learn. I've recently written this code ...
Mokey's user avatar
  • 215
1 vote
1 answer
195 views

Getting file name instead of contents when downloading file with FtpWebRequest

I'm trying to write a tool that can download shapefiles from the census bureau's TIGER FTP site, which is here: ftp://ftp2.census.gov/geo/tiger/TIGER2015/TRACT. I am able to list files just fine, but ...
siride's user avatar
  • 206k
5 votes
2 answers
4k views

C# - Download files from FTP which have higher last-modified date

I have an FTP server with some files. I have the same files in in a local directory (in C:\). When I'll run the program, I'd like it searches all files in the FTP server that have a last-modified ...
Giochi Blu's user avatar
1 vote
1 answer
4k views

C# automatically open file location after downloading from ftp server

I had a C# homework which I have to make a download manager, I already completed it. This is my code: using System; using System.Collections.Generic; using System.ComponentModel; ...
John Keane's user avatar
0 votes
1 answer
3k views

File size detection before downloading from an ftp server? C# error

I have a C# homework, to create a download manager to download a file from an ftp server, with these conditions: Selection of an audio file on a server. Detection of file size. Asynchronous ...
John Keane's user avatar
1 vote
1 answer
6k views

PHP force download .png file

Hello and thank you for your time. I am trying to use the following code to force a download of a .png image that is created from a Unity application I developed onto the users computer. <?...
WilliamLeonSmith's user avatar
1 vote
0 answers
2k views

Download large file 1gb+ without timeout error

I am currently trying to download a large file (1.13gb) from a ftp location and it is timing out. When I checked the download was only doing about 350mb every 10 mins on the server. Other than ...
anna's user avatar
  • 1,011

15 30 50 per page