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

Please do not use to report errors- use your regional help desk.
Please mark posts as being for RPG or RDMLX (LANSA) developer.
To subscribe by email, display this forum, scroll to the end and select ‘Subscribe Forum’.
Post Reply
Yukiko Ikeo
Posts: 6
Joined: Wed Jul 02, 2014 4:28 pm

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

Post by Yukiko Ikeo » Mon Jul 24, 2017 12:05 pm

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

jasonzhou
Posts: 127
Joined: Wed Jan 11, 2017 3:26 pm

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

Post by jasonzhou » Tue Jul 25, 2017 2:55 pm

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

Yukiko Ikeo
Posts: 6
Joined: Wed Jul 02, 2014 4:28 pm

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

Post by Yukiko Ikeo » Fri Jul 28, 2017 5:05 pm

Hi Jason,

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

Thanks
Yukiko Ikeo

Post Reply