You must Sign In to post a response.
  • Category: ASP.NET

    Image is not posted at server side


    I am posting image on a particular URL.

    when the Proxy server is On image is not saved at the URL server.

    But when Proxy server is Off Image get saved at server side.

    What is reason behind this . can any one explain this.

    i am using this below code:

    System.Net.WebClient Client = new System.Net.WebClient();

    Client.Headers.Add("Content-Type", "binary/octet-stream");

    byte[] result = Client.UploadFile(url, "POST", imagepath);

  • #648609
    if you are using a proxy server you should also specify this in web.config file.

    <defaultProxy enabled="true" useDefaultCredentials="true"></defaultProxy>

    Software Engg.

  • #648611
    Thanks for replying .

    But i am posting image through my Desktop application.

    With Regards

  • This thread is locked for new responses. Please post your comments and questions as a separate thread.
    If required, refer to the URL of this page in your new post.