views:

52

answers:

2

I am using HTTP API called HttpClient to upload the file using "post", but haven't been able to find any sample code for the same.

Any ideas? Any examples/implementations?

Edit:-

I meant HTTP API called HttpClient - See "Consuming RESTful Services with HttpClient" here

A: 

You meant WebClient? Try this sample: Download And Upload A File Using C#

EDIT: Try this post: Upload file with REST

Rubens Farias
Have edited the question with the library I meant to use.
MOZILLA
A: 

how about considering the use of curl..its straightforward...documentation available in the internet

Aadith