json - getMFAResponseForSite - rendering array as a captcha image -
i'm working yodlee mfas, in case, captcha, , i'm wondering how render image field json response:
{ "ismessageavailable":true, "fieldinfo":{ "responsefieldtype":"text", "imagefieldtype":"image", "image":[ 66, 77, 58, 116, 0, 0, 0, 0, 0, 0, 54, 0, 0, 0, 40, 0, 0, 0, -91, 0, 0, 0, 45, 0, 0, 0, 1, 0, 32, 0, 0, 0, 0, 0, 4, 116, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, -1, -1, 0, -1, -1, -1, 0, -1, -1, -1, 0, -1, -1, -1, 0, -1, -1, -1, 0, -1, -5, -1, 0, -1, -1, -1, 0, -9, -9, -9, 0, -1, -5, -1, 0, -1, -1, -1, 0, -1, -5, -1, 0, -17, -17, -17, 0, -1, -1, -1, 0, -1, -1, -1, 0, -1, -1, -1, 0, -9, -13, -9, 0, -1, -1, -1, 0, -1, -1, -1, 0, -1, -1, -1, 0, -1, -1, -1, 0, -1, -1, -1, 0, -1, -1, -1, 0, -1, -1, -1, 0, -1, -1, -1, 0, -1, -1, -1, 0, -9, -9, -9, 0, -1, -1, -1, 0, -1, -1, -1, 0, -1, -1, -1, 0, -1, -1, -1, 0, -17, 0, -1, -1, -1, 0, -1, -1, -1, 0, -1, -1, -1, 0, -1, -1, -1, 0, -1, -1, -1, 0, -1, -1, -1, 0, -1, -1, -1, 0, -1, -1, -1, 0, -1, -1, -1, 0, -1, -1, -1, 0, -1, -1, -1, 0, -1, -1, -1, 0, -1, -1, -1, 0, -1, -1, -1, 0, -1, -1, -1, 0, -1, -1, -1, 0, -1, -1, -1, 0 ], "minimumlength":-1, "maximumlength":-1, "displaystring":"please come in text shown in image" }, "timeouttime":99900, "itemid":10014925, "retry":false } for more information, can read next links: link1, link2
i appreciate help since asked yodlee representative , directed me here.
the captcha image beingness returned in string byte array of image. need convert string byte array , image. can using jdk libraries i.e. no external libraries required.
you can utilize these.
java.awt.image.bufferedimage; java.io.bufferedreader; java.io.bytearrayinputstream; arrays json image captcha yodlee
No comments:
Post a Comment