on 2022 Aug 24 8:20 PM
Is it possible to create a field in CDC which can take a PDF file as an attachment and save the PDF in CDC database.
If so , what is the process to do it?
Request clarification before answering.
Hi,
As I understand there is no standard way to create a upload file in screen-set via UI builder.
Can we create a custom field (type- string or binary/encrypted string) in CDC. On UI, we create a upload field via HTML, fetch the pdf through the field ,convert the pdf to binary or xstring format, and finally call a service to save it to the custom field in CDC.
Has anyone worked on similar requirement? Do you have the pseudocode.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pranav,
The only types of data supported in the CDC schema is as follows

You can however upload your pdf files to the cloud storages like S3 or Blob or even server them from your own server storage, and then create a string field with the URL of the pdf files.
But anyway storing the pdf file or any binary file in the database, be it relational DB or NoSQL DB is not a best practice. It's recommended to be handled on application side, rather on DB side.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello, Pranav,
If you want to create a field on the screen-sets to store a PDF file, it is not possible.
Best regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.