Page 1 of 1

[RPG] get the image from Googlechart and encode it base64

Posted: Mon Jul 24, 2017 12:05 pm
by Yukiko Ikeo
Hi All,

The customer wants to get the image from Googlechart and encode it base64.
I think it needs 3 steps.

Step1. show Googlechart.

It's possible as there is a sample in LongRange demonstration.

Step2. get image of Googlechart

I have no idea for this.
Is there any ways to achieve this?

Step3. encode it base64

In the case of LANSA, setting the image to BOLB field makes it possible.
But the customer uses LongRange for RPG.
Is there any way to encode base64?

Best regards, Yukiko Ikeo

Re: [RPG] get the image from Googlechart and encode it base64

Posted: Tue Jul 25, 2017 2:55 pm
by jasonzhou
Hi Yukiko,

In LongRange Google Chart example, the chart is displayed in a webview, so I think you can't get and encode it directly with RPG code.

However, you can have a try with JavaScript, which can encode an image to base64.

Thanks
Jason

Re: [RPG] get the image from Googlechart and encode it base64

Posted: Fri Jul 28, 2017 5:05 pm
by Yukiko Ikeo
Hi Jason,

Thank you for your reply.
I'll tell the customer that it's hard to achieve what he want...

Thanks
Yukiko Ikeo