Jump to content
Server Maintenance This Week. ×

unable to access images using CWP using php


This topic is 3526 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • 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.

Link to comment
Share on other sites

  • 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!

Link to comment
Share on other sites

  • 2 weeks later...
  • 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??
Link to comment
Share on other sites

This topic is 3526 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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