Getting imageData from a image captured in camera

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
BigameOver
Posts: 39
Joined: Thu Jan 23, 2020 5:56 pm

Getting imageData from a image captured in camera

Post by BigameOver » Mon Sep 28, 2020 6:38 pm

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

Klaus
Posts: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Getting imageData from a image captured in camera

Post by Klaus » Mon Sep 28, 2020 7:01 pm

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.

Post Reply

Return to “Android Deployment”