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

    Image is not posted at server side

    Hi,

    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.


    <system.net>
    <defaultProxy enabled="true" useDefaultCredentials="true"></defaultProxy>
    </system.net>


    Regards
    Mr.Rajesh
    Software Engg.

  • #648611
    Hi,
    Thanks for replying .

    But i am posting image through my Desktop application.

    With Regards
    Kushal


  • 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.