locked
my profile is loading form catch

    Question

  • Dear team,

                    i have a profile image in my application, it is working correctly,when i updated the image it is not displaying the updated image. if i uninstall and install the application (same version) it is displaying the updated image.

    the code i am using is

     

    App.UserID=""1";

    Uri uri = new Uri("//Profile//" + App.UserID + ".jpg", UriKind.Absolute); ImageSource imgSource = new BitmapImage(uri); imgLogeduser.Source = imgSource


    kindly help


    • Edited by mann madhan1 Saturday, November 22, 2014 5:57 PM
    Saturday, November 22, 2014 11:48 AM

Answers

  • try a uri like this instead

    ri uri = new Uri("http://simbatech.in//profileuploader//Profile//" + App.UserID + ".jpg?date="+DateTime.Now.ToString(),

    • Marked as answer by mann madhan1 Saturday, November 22, 2014 5:57 PM
    Saturday, November 22, 2014 5:39 PM

All replies

  • The image must be cached.  You could try putting a query string on the end of the url of the image so it always thinks it is a different image.
    Saturday, November 22, 2014 4:05 PM
  • Thanks for your reply.

                 but i cann't understand your answer. can you give me a sample code. plz....

    Saturday, November 22, 2014 5:12 PM
  • try a uri like this instead

    ri uri = new Uri("http://simbatech.in//profileuploader//Profile//" + App.UserID + ".jpg?date="+DateTime.Now.ToString(),

    • Marked as answer by mann madhan1 Saturday, November 22, 2014 5:57 PM
    Saturday, November 22, 2014 5:39 PM