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.

unable to access images using CWP using php

Featured Replies

  • Newbies

Hi there,

 

I am having the problems in accessing the data stored in container fields using  php.

The containers are not remotely stored. A screenshot is attached showing the database settings for container field. 

I am able to access data stored in other fields from a remote computer using php api. 

But when I try to access the container fields...

For: 

$image=$record->getField('container field');
        $attach=$fm->getContainerData(urlencode($image));
        if (FileMaker::isError($attach)) {
            echo "Error: " . $attach->getMessage() . "n";
        }
 
I get:: Error: getContainerData() does not support remote containers 
 
For:
echo $fm->getContainerDataURL(urlencode($record->getField('containerfield')));
 
 
When try to open the url in a browser I get a  xml in return that has ::   <error code="959"/>  
 
My server has php and xml access enabled for the privilege set I am using.
 
Thanks in advance
 
 
 

post-111713-0-67463100-1407819624_thumb.

  • 2 weeks later...

Hey sujanko, I believe error 959 means "technology is disabled" This would generally imply that simply enabling it would fix the problem; however, this isn't always the case.

 

You should start by rebooting the server. If you still receive error 959, you should try re-deploying the server via the Admin Console. If that doesn't work, you may end up needing to completely uninstall and reinstall FileMaker Server.

 

Unfortunately, I have not found a better way to solve this problem.

 

Cheers!

  • 2 weeks later...
  • Author
  • Newbies

Now, I opened the xml service in the server and now I get nothing for getContainerData()

 

$image=$record->getField('Attachment');
        $attach=$fm->getContainerData(($image));
        if (FileMaker::isError($attach)) {
            echo "Error: " . $attach->getMessage() . "n";
            echo $fm->getContainerDataURL($image);
           exit;
        }
 
        echo 'Attach = '. $attach;
 
While I run the above code for filemaker server installed at my localhost i get image in binary format BUT for server at live i get nothing for output.
Does it have something to do with blocked ports??

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.