Newbies sujanko Posted August 12, 2014 Newbies Posted August 12, 2014 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')));  I get a url in response simlilar to :: http://HOSTIP/fmi/xml/cnt/Untitled.jpg?-db=DATABASENAME&-lay=LAYOUTNAME&-recid=253&-field=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   Â
Will Slaughter Posted August 21, 2014 Posted August 21, 2014 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!
Newbies sujanko Posted September 2, 2014 Author Newbies Posted September 2, 2014 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??
Recommended Posts
This topic is 3931 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 accountSign in
Already have an account? Sign in here.
Sign In Now