Page 1 of 1

Getting imageData from a image captured in camera

Posted: Mon Sep 28, 2020 6:38 pm
by BigameOver
Hi,
How can I get imageData from a image captured in camera?
I tried to put the image into a custom property and do this code:

Code: Select all

put  url ("binfile:" & the PICPROP of image "itemPhoto") into timageData
but when I answer timageData I get nothing.
thanks

Re: Getting imageData from a image captured in camera

Posted: Mon Sep 28, 2020 7:01 pm
by Klaus
BINFILE requires a FILE, as the name suggests! 8)

But you want to put a custom property named "PICDROP" into a variable and that goes like:

Code: Select all

...
put the PICDROP of img "itemPhoto" into tImageData
...
And ANSWERing binary data may not look like you'd exspect as TEXT.