This topic is locked
[SOLVED]

 SignaturePad Edit to Store in Database blob

5/29/2019 10:35:28 AM
PHPRunner General questions
D
digger68 author

I am looking for where to start (in the code) or if it already exists and I just missed it regarding saving the signature into a MySql blob instead of the file system. I see in the before recorded added section I can grab it after it's written to the file system then push it into the database, but I need save it directly to the database. I get blobs and images and databases are not the best patterns but I have a requirement to hit the above use case. Any guidance would be appreciated. Thanks again.

Sergey Kornilov admin 5/29/2019

SignaturePad currently only works with files. But, since this is an isolated plugin it will be fairly easy to find the code that saves the image and change it to save image in the database.
SignaturePad plugin on your system can be in Documents\PHPRunnerPlugins\edit\SignaturePad folder. File to modify is EditSignaturePad.php and function readWebValue() is where the magic happens.
Also check this:

https://phprunner.com/phprunner/docs/how_to_create_your_own_edit_control.htm

D
digger68 author 5/29/2019



SignaturePad currently only works with files. But, since this is an isolated plugin it will be fairly easy to find the code that saves the image and change it to save image in the database.
SignaturePad plugin on your system can be in Documents\PHPRunnerPlugins\edit\SignaturePad folder. File to modify is EditSignaturePad.php and function readWebValue() is where the magic happens.
Also check this:

https://phprunner.com/phprunner/docs/how_to_create_your_own_edit_control.htm


Thanks you so much, works perfectly.