Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Problem using php to decode base64 generated by FileMaker 13 and also Base Elements plugin

Featured Replies

Just wondering if anyone has a quick answer to this... I've been going round in circles trying to get it to work...

 

Firstly, I would like to use FileMaker Pro 13's base64encode function to encode a file in a container field, and then use httppost to send the encoded text to a php script on my web server which then does a base64_decode to then save the file (PDF, images etc) on the web server. However, php's base64_decode doesn't seem to work with the base64 encoded text that FileMaker has generated. The resulting file is saved, but cannot be opened/recognised.....

 

Further to this, I also need to be able to do the same in a FileMaker Pro 12 version, using the Base Elements Plugin functions to also do a base64 encode and an http POST....

 

Any ideas anyone..?

 

Many thanks,

 

Sky.

 

  • Author

Aha - I think I found the answer...

 

In the php script on my web server I added the following line:

 

$data = str_replace(" ","+",$_POST['data']);

 

so it is now:

 

$data = str_replace(" ","+",$_POST['data']);
$data = base64_decode($data);
file_put_contents('test.png', $data);

 

..where $_POST['data'] is the base64 encoded text generated by FileMaker 13, and also the Base elements plugin....

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.