Now I have a different service provider, and they return a string (Base64 encoded ) which is supposedly in .jpg format:
- Code: Select all Expand view
- SUkqAHYBAACAP+BQOCQWDQeEQmFQuGQ2HQ+IRGJROKRWLReMRmNRuOR2PR+QSGRSOSSWTR93xkHxh8N+MIcfxg/RhwP6MB9+w8ATsPwR4P9xw5gQNzwRnv+XQxATGBPuBviY0mFAA/wR7wNDwKmQl8Qajv9+VV+Qt/AeDUx502FsGDTaBSl/1eEv6twO2QKk3KEOG2gCzP+mV+EJ+DUOnW5/r+FVWCXR/06cwLGQexwWhv+c5F/ZODU6BPwHvie4/MQLIwjPP4B2mB1fI6eD5586WB3C1Ql+D9+WbEP/BaR/uCC4p/sABwPJ4SB054B/Ocrh8iCPgwSviQrib2BcrrwniZWD92F6yD3WF7aDVVAZyEJ6ETZ8eyDv4A++4wx8VSETmVwqyqKhB8p+hb6qkgx5v6hLhMA3CyJ7AaKLu36JKY8yILcrqKtmf8AIoop/NGiiUr4iyUwMk8URTFUVxZFsXRfGEYxlGcaRrG0bxxHMdR2jaAgOAP4ABAABAAAAAAAAAAABBAABAAAA0AAAAAEBBAABAAAAcAAAAAIBAwABAAAAAQAAAAMBAwABAAAABQAAAAYBAwABAAAAAQAAABEBBAABAAAACAAAABUBAwABAAAAAQAAABYBBAABAAAAcAAAABcBBAABAAAAbgEAABoBBQABAAAAJAIAABsBBQABAAAALAIAACgBAwABAAAAAgAAAD0BAwABAAAAAQAAAAAAAAAAdwEA6AMAAAB3AQDoAwAA
The code section is the value they provide me. So, I need to convert the Base64 encoded string and save it as a .jpg which I can then read into my memo file. Once I have it in .jpg format, the rest is already done.
My other vendor provided a simple call that converted their string and saved it as a .jpg. In this case, I need to do it using harbour/xharbour functions.
Your thoughts would be appreciated.