Since the error will be on the line:
ms = new MemoryStream(b);
You need to look at the code you used to generate the RightIris string value. A quick check with a hex editor says it is not a JPEG image even when converted from Base64 - it lacks a JPEG header. Since the rest of the code it referencing .jpeg files, I assume it should be one as well.