- Sivaprakash BKR
- PowerBuilder
- Sunday, 1 July 2018 04:14 AM UTC
Hello,
I need to capture images using the attached webcam [ desktop, laptop, ...] and store that image in a database. Smaller image size is preferable.
Currently I got Logitech C-170.
Any idea how to accomplish this task ? Should work in PB 11.5 and /or PB 2017.
Happiness Always
BKR Sivaprakash
Update 1: Tried using EZTW32.DLL.
Results for the following commands.
ll_ret = TWAIN_IsAvailable() // Returns 1
ll_ret = TWAIN_LoadSourceManager() // Returns 1
ll_ret = TWAIN_OpenSourceManager(0) // Returns 1
ll_ret = TWAIN_OpenDefaultSource() // Returns 0
ll_Ret = TWAIN_EnableSource(0) // Returns 0
ll_ret = TWAIN_AcquireToFilename(0, "c:\temp\result.bmp")
pb_1.picturename='c:\temp\result.bmp'
// Error
Unable to open default Data Source.
Source Manager operation failed.
RC: TWRC_FAILURE
CC: TWCC_NODS (No Data Source)
I plugged my webcam from the front size of the CPU.
This webcam works perfectly when tried with an Windev application.
Update 2: Using Windows 7 Ultimate SP1, 64-bit
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.