Actually, since you mentioned displaying images in reports, you just need the raw byte array.
So you don't need a data URI at all; just set data["Signature"] to the inner element of the query (consider system.db.runScalarPrepQuery), and the add an image component and set its data key to Signature and it should just work, as long as you're on a fairly recent 8.1 version.