Detect A Document With Base-64 Encoding And Decode It Before Displaying It
Many Third Party applications that do API integration want to use Base-64 encoding when transferring documents. Unfortunately, DocuWare does not decode the Base-64 before the document is stored. Therefore, it is desired to have the DocuWare web client support Base-64 and decode a document for display in the web client.
The specific use case that the client is seeing is a SalesForce implementation. SalesForce can only send the document using Base-64 encoding. In this case it is going through middle-ware that was built on the Oracle Service Bus. The client has decided to implement a workaround where the OSB application converts the document to binary, which we support.
Note that the alternative is to decode the Base-64 when the document is stored. Then if requested via the API encode it to send it back. That will be entered as another DocuWare improvement.
Thank you for your idea. Right now we are focusing on other topics, so we are not considering this idea for future releases. If the demand for this topic increases, we might add it to future plans.
-
Bruno Villa commented
In the context of Italian electronic invoicing, the XML invoice file can contain attachments, which are encoded in Base64.
Thanks to the latest versions, we can retrieve data from the XML and insert it into a memo field.
Furthermore, now that we have access to the DocuWare platform API, we could attach this string as an attachment document to the invoice. -
Dave commented
Many Third Party applications that support API integration want to use Base-64 encoding when transferring documents. Unfortunately, DocuWare does not decode the Base-64 before the document is stored. Therefore, it is desired to have the DocuWare API support Base-64 and decode any Base-64 encoded document that is received before it is stored.
The specific use case that the client is implementing is a SalesForce implementation. SalesForce can only send the document using Base-64 encoding. In this case the document is going through middle-ware that was built using the Oracle Service Bus. The client has decided to implement a workaround where the Oracle Service Bus converts the document to binary before sending it to DocuWare, which we support.
Note that an alternative solution is to have the DocuWare web client decode the Base-64 when the Base-64 encoded document. That will be entered as another DocuWare improvement.