Possible to decode base64 document contents to XDP?

Avatar

Avatar

Ray_Silke

Avatar

Ray_Silke

Ray_Silke

12-08-2009

Hi,

As the title says, is it possible to decode the base64-encoded contents of my PDF back to an XDP format?

Using this JavaScript SOAP.stringFromStream(SOAP.streamEncode(Collab.documentToStream(event.target), "base64")); I am able to submit the base64 encoded PDF document to my server side for processing. Is there any way to convert this back to XDP format at this stage?

Thanks,

Ray

View Entire Topic

Avatar

Avatar

parth_pandya

Avatar

parth_pandya

parth_pandya

13-08-2009

Hi Ray,

In your form if you have bound the webservice in Data View tab then you shuould be able to pass that token as part of the web service request data. By doing this you are putting the token as the form data so you might have to populate the value in a hidden text fields in the form and thus the value gets stored there but is not visible.

To answer the base64 decoding issue, you may be able to decode the data via java api. Have a look at package com.adobe.idp.common.util.Base64 class in LiveCycle client apis and there is a decode method there.

cheers,

Parth