15,912,977 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Indhukanth Pv (Top 4 by date)
Indhukanth Pv
12-Dec-14 6:31am
View
i need to download some files from remote server.
and on my db table i have some file path,hash value,status etc corresponding to each entry.
i need to download these files to my local machines to temp folder and need to check the hash set corresponding with the db table.. if it is equal then create the directory if not exits and paste this into the local path and also i will update the table field status to "Done". then go for the next...
Indhukanth Pv
8-Dec-14 0:39am
View
can i call service public Stream RetrieveFile(string path) using this code inside from my code??
but using (var response = request.GetResponse()) what actually return??
Indhukanth Pv
7-Dec-14 10:43am
View
is special character in url?
can you briefly explain?
Indhukanth Pv
7-Dec-14 4:46am
View
Hi Tadit,
its showing "A potentially dangerous Request.Path value was detected from the client (:)." my url look likes
http://localhost/FileSync.SyncService/TransferService.svc/RetrieveFile/D:%5CTestFolder%5Citem.zip..
RetrieveFile: is the service contractor ie,
public Stream RetrieveFile(string path)
path : is uri path..
im using another client application which uses following code to download
private void DownLoadFileFromRemoteLocation(string downloadFileLocation, string downloadedFileSaveLocation)
{
string serviceUrl = string.Format("{0}/RetrieveFile/{1}", FileManagerServiceUrl, downloadFileLocation);
var request = WebRequest.Create(serviceUrl);
using (var response = request.GetResponse())
{
using (var fileStream = response.GetResponseStream())
{
CreateDirectoryForSaveLocation(downloadedFileSaveLocation);
SaveFile(downloadedFileSaveLocation, fileStream);
}
}
private string FileManagerServiceUrl
{
get
{
return "http://localhost/FileSync.SyncService/TransferService.svc";
}
}