TakePicture

This command will retrieve an image from an Android, iOS, or Window CE camera, and store the format of the image (i.e. png, jpeg, or bmp) as follows:
1) Take the picture; 2) link the captured image to the prompt by its name or the prompt's array value; and 3) Set the timeout value on the client for the period where the image is sent to the server before the image is dropped back into the prompt on the client.

Group:   Device Extensions


Syntax: Device.TakePicture(Image() as Byte, [ByVal Timeout As Long=30], [ByVal Prompt]) As Boolean

bOK           (Boolean) Optional – The success or failure of the command.

bImage    (Byte Array) - Stores the image file using the prompt's name or the array value.

Timeout    (Long) - The timeout value for Thin client waiting for a response from the server. The default is 30 seconds.

Prompt     (Prompt)- The name of the prompt or the prompt's value that provides the name or value for the image file.

Example:

Dim bOK As Boolean

Dim bImage() As Byte

imgPic.Image.Bitmap = bImage

Device.TakePicture (bImage, 30, "imgPicture_pg1") 'where imgPicture_pg1 is the image control name