1 Reply Latest reply on Apr 27, 2009 4:45 AM by Hodmi

    ApplyUsageRights returns empty binary data

    marcesher

      All,

        I'm just starting to play with LiveCycle, and I started with the ReaderExtensionsService applyUsageRights. When I send my webservice call from ColdFusion, I'm getting a BLOB back but the call to getBinaryData() returns empty.  I've tried sending a pdf as binarydata and as a URL, with the same result. I tried sending junk data, and it correctly returns error messages.

       

      Any suggestions for debugging this? I'd much rather see errors than simply empty data.

       

      marc

        • 1. Re: ApplyUsageRights returns empty binary data
          Hodmi Level 4

          I'm not sure about ColdFusion, but try adding the string "?blob=base64" to the URL for the web service call (works in Java and .Net).

           

          The LiveCycle web services can accept binary data as base64, MIME and DIME encoding as well as passing a URL to the file (rather than the file itself).  You specify the type you want by adding the blob parameter onto the web service target URL.

           

          You should then be able to send the data using the BLOB.setBinaryData() and get it out using the BLOB.getBinaryData() methods.