- Simone Olianti
- SnapDevelop
- Wednesday, 13 May 2020 09:20 AM UTC
Hello, i've successfully created a small webapi used to communicate from a PB client application and exchange data to a remote asa database. The PB (2019R2) client app is using restclient to send and get data from a table and everything working great.
Next step i would like to send a small image grabbed from an inkpicture control to the webapi and save it to a long binary table field.
I was able to convert the blob coming from ink control to a base64 string and sent it to the web api using a sendpostrequest.
I'm not yet very familiar with C# so now my question is: is it possible to convert back the base64 string to a blob and save it to remote table?
i guess i should use PbBlob class and SqlUpdateBuilder to construct the statement and execute it from the web api but i am not sure how to do it, if it is the best choice or if is there a better approach to accomplish this task
any help or suggestion would be appreciated
tia,
simone
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.