Following code snippet throws exception on size if ReadObject is called after UpdateObject. It works fine if ReadObject is called after CreateObject. I tried passing null as well as new Extent(-1,-1) in UpdateObject for Extent parameter. Still go the same error. Any ideas?
byte arr = File.ReadAllBytes(@"C:\Users\Public\Pictures\foo.bmp");
api.UpdateObject(path, null, null, null, arr, null);
//Read after update
retval = api.ReadObject(path, new Extent(-1, -1), null);
Solved! Go to Solution.