![Profile photo of Martin FF](https://www.omnis.net/community/wp-content/plugins/buddyboss-platform/bp-core/images/profile-avatar-buddyboss.png)
Martin FF
Forum Replies Created
-
I recommend you for a medal tomorrow at the Omnis event in the hotel tomorrow.
<div>Thx Paul!!</div>Just one thing for a local file to get, I had to use:
Do FileOps.$readfile(‘Path to File’,lBinary) -
Hi Paul,
Thank you for this answer. I went away for a weekend so I just read this post.
Let me put some examples in PHP and a genarator with the picture of Omnis(https://www.omnis.net/wp-content/uploads/2018/11/omnis-Logo.png) as data.
—————————————————————————–
In PHP we have:
$imagedata = file_get_contents(“https://www.omnis.net/wp-content/uploads/2018/11/omnis-Logo.png”);
$base64 = base64_encode($imagedata);
echo $base64 ;This result in the data you see if you open https://elemart.nl/base64/
—————————————————————————–
If we use a generator like https://www.base64-image.de/ and we use the “Or click here”-button, to enter https://www.omnis.net/wp-content/uploads/2018/11/omnis-Logo.png again with the same result as in PHP.
—————————————————————————–
Thereafter if I use your code the contens of the data is diffrent.
<div style=”font-family:Verdana,Arial,Helvetica,Sans-serif;font-size:14pt”>
Do OXML.$base64encode(“https://www.omnis.net/wp-content/uploads/2018/11/omnis-Logo.png”,lErrorText) Returns lBinary
Calculate vsImageEncoded as utf8tochar(bintobase64(lBinary))
Breakpoint
Calculate vsImageEncoded as con(‘data:image/png;base64,’,vsImageEncoded)
Breakpoint
Regards,
Martin
</div>
-
This reply was modified 2 months ago by
Martin FF.
-
This reply was modified 2 months ago by
-
-
Hi Andreas,
I tryed that and also kTestSpace. It will test or fitt page for the Header only (without considering the records below the records)
Martin
-
Correction: (without considering the records below the HEADER)
-
-
#CLIST did the job,
Thx both😀
-
Hi Andreas,
For the font. I’m sorry but no. Not for windows.
Alt-I works. Thanks
And for the compare. I will send one.
Regards,
Martin
-
Hi Michael,
Thx for the quick reply,
The problem is not to to read the file but to get it in to readeble charakter data for the api as in my example.