Skip to main content
June 24, 2022
Question

Mapping image into database via POST method

  • June 24, 2022
  • 6 replies
  • 0 views

i have created a web API to upload a image. the image is storing in the destination location but cannot able to store mapping in DB

    6 replies

    stefanhelzle0001
    June 24, 2022

    What exactly do you mean with "cannot able to store mapping in DB"?

    June 24, 2022

    i am unaware of mapping image into DB

    stefanhelzle0001
    June 24, 2022

    To write to DB you create a CDT. In the CDT you can select the type "Document" for a field. Assign the uploaded document to this field and write the CDT data to DB. The file will stay in the file system and you have the reference in the DB.

    harshitb6843
    June 24, 2022

    Just use the tointeger() function in front of the respective property in CDT and then use the Write to DSE to store that ID in the table