In a repeating table, I have an ink picture where the user draws. On a button click, I resize their drawing and display it in a picture control. When the user adds a 2nd ink picture, I can't seem to get it to display the resized image. I don't get an error but it doesn't seem to do anything either. I've traced with the debugger and it gets in here and executes everything. Here's my code:
string s = MainDataSource.CreateNavigator().SelectSingleNode("/dfs:myFields/my:Detail/my:Images/my:InkImage", NamespaceManager).Value;
Image drawnImage = Base64ToImage(s);
Image shrunkenImage=ResizeImage(drawnImage, new Size(100, 100));
s = ImageToBase64(shrunkenImage, System.Drawing.Imaging.ImageFormat.Png);
DeleteNil(MainDataSource.CreateNavigator().SelectSingleNode("/dfs:myFields/my:Detail/my:Images/my:ShrunkenImage", NamespaceManager));
MainDataSource.CreateNavigator().SelectSingleNode("/dfs:myFields/my:Detail/my:Images/my:ShrunkenImage", NamespaceManager).SetValue(s);
Is the XPath of the 2nd image different?