Hi Everyone, I am using "Appian Document from Base64 String" Sma

Hi Everyone,
I am using "Appian Document from Base64 String" Smart service, that is used to get the attachment from a download link. This smart service has 'docExtension' as one of its input parameter. Now this smart service works fine for pdfs,mp3,doc format. By fine I mean it successfully gets the attachment present on the given download url in Appian.However, if any attachment is of the form '.docx' then it gets the document in appian, but when one tries to access that .docx document in Appian it says that the file can not be opened and is corrupted.

Is there a way where in I can get and access .docx extension file in Appian using this smart service.
This is bit urgent. Any help would be appreciated.

Thanks in advance....

OriginalPostID-71342

OriginalPostID-71342

  Discussion posts and replies are publicly visible

  • I responded to your question in the discussion thread for the component. But the short answer is that there is no reason a Docx specifically wouldn't work, and I was able to run this successfully with a properly encoded docx.
  • I am using 'Send Http Request to get Document' Service to make a call in order to download the document present on the provided download link. In the output of this service there is 'responseBody'. Now when I try to make http request to the download link which contains '.docx' extension document, then the the value of the 'responseBody' in the output tab is absurd and is not coming correct as a result of which the .docx file is not being bought in Appian environment. However for other extension(pdf/mp3) http request call works fine. I am bringing files from Box.net to Appian.

  • Hi,

    I have tried to debugged my issue and came out with this conclusion. Whenever I try to get the files which are of earlier versions (.doc,.xls,.ppt) it works fine and document attached to the given link is bought into appian. However if the attached document in the link are of extensions versions ie, (.docx,.xlsx,.pptx) then there is a problem and file is not bought in Appian when a send http request service is used.
    So, is there any updated version of this "Send HTTP Request" plugin available in which this issue is addressed and handled?

    Thanks in advance.
  • The plugin on Forum is the latest version, and I have not had any problem accessing any specific document types including Word/Excel.

    Please verify that your Return Content Type on the Send HTTP Request service is set to Binary rather than Auto or Text. I suspect there is an XML in the content-type response header, which would lead the service to interpret the response as text rather than B64 encoded binary.

    If setting it to binary doesn't work, please turn debugging on
    (log4j.logger.com.appiancorp.process.runtime.activities.HttpRequestActivityNTLM=DEBUG
    log4j.logger.com.appiancorp.util.http=DEBUG)

    and post the Application Server output here. From now on please just reply to this thread instead of posting in all the other threads as well. Thank you.
  • Thank you very elizabeth. From the information about the Return Content type, we came to know that the older version of this smart service was deployed on our org. We have got the latest version deployed and it's working fine as expected.
    Thanks once again for all your support!