You need to sign in to do that
Don't have an account?
SivaG
Image Capture in Visual force page
Hi,
I have a requirement to capture an image in visual force page either from computer or through Camera(Webcam/phone camera/tablet camera). What all frameworks/technologies that we have to implement in visual force page to accomplish this.
Thanks
Siva
I have a requirement to capture an image in visual force page either from computer or through Camera(Webcam/phone camera/tablet camera). What all frameworks/technologies that we have to implement in visual force page to accomplish this.
Thanks
Siva
You'll need something like Flash or HTML5 to accomplish your goal. There is no native 'image capture' function in Visualforce.
All we have to do is to use “accept” attribute of “apex:inputfile”. accept=”image/*;capture=camera” will inform device that current application (in our case Salesforce1) needs to access Camera of the device.
Apex Controller:
Visualforce Page:
Please check the below link for more examples.
https://davidwalsh.name/browser-camera
Hope this helps you!
Best Regards,
Jyothsna
All Answers
You'll need something like Flash or HTML5 to accomplish your goal. There is no native 'image capture' function in Visualforce.
All we have to do is to use “accept” attribute of “apex:inputfile”. accept=”image/*;capture=camera” will inform device that current application (in our case Salesforce1) needs to access Camera of the device.
Apex Controller:
Visualforce Page:
Please check the below link for more examples.
https://davidwalsh.name/browser-camera
Hope this helps you!
Best Regards,
Jyothsna
What does the PathonClient, Origin and Title denote on your code above when saving the image captured? Thanks!