I'm using the QR Code generator from google api web page, and trying to download the QR image that results from the data passed.
My problem is that if I put the URL in the browser (have tried with Chrome and IE, and it's working) I get the expected QR Image, I can download with the Save As command in it, and it's ok. But when I use the same URL, and pass it using the GetURL function within powerbuilder, then the QR Code displayed is different from the one I get using the browser directly.
The URL is: (this is an example or the URL that will be passed. The parameter string chl will be different each time it will be called. This is a string that need to have the following format:
?re=XAXX010101000&rr=XAXX010101000&tt=1234567890.123456&id=ad662d33-6934-459c-a128-BDf0393f0f44
being the bold characters that will change. )
The QR Code resultant when scanned returns only the part "?re=XAXX010101000" as being coded, the remain of the string it appears as not getting "coded". If I change this portion of the string it reflects the change, but the rest of the string is appearing as not received.
The code I'm using to test is: (mle_urlcbb is the control I'm using to store the URL, but in production it will be constructed on the fly)
Integer li_rc
String ls_filename
SetPointer(HourGlass!)
li_rc = iinet_base.GetURL(mle_urlcbb.text, in_irdata)
IF li_rc = 1 THEN
ls_filename = "C:\TEST\CBB.PNG"
in_irdata.of_WriteFile(ls_filename, in_irdata.iblob_data)
MessageBox("Success", "CBB File Successfully downloaded")
ELSE
MessageBox("Error", "Get CBB Failed")
END IF
I don't know what could be wrong,
Thanks for your answers and/or suggestions.
regards....
Ricardo