Hi All,
In one of my POC I am having requiremnt of converting a document(jpg,pdf) into base64 and storing the base64 in Database.
I am using Base64 to Database Services to store the document, but instead of base64 string it is storing Appian ID itself.
Below are the screenshots of smart service node and database design.
Any comments on this would be appreciated.
Thanks
Table Structure (also I tried Varbinary, blob data type for base64)
Discussion posts and replies are publicly visible
Why do you need to store base64 in the database? Using Documents and storing the document ID instead is much better for performance and management.
Can you try renaming the ACP to 'documentId'?
and update sql INSERT INTO book VALUES (:documentId,:title);
This ACP must be named documentId for the node to complete the conversion.
I agree on your point. I am just trying to explore the smartservice.
Thank you. It is working by renaming the ACP to documentId
It worked for the first attempt, but not for subsequent attempts. Now process model is completed without writing anything in DB.
Do you have any idea on this?