Importing photos

Hi, just wondering whether it is posible to take photos on a mobile/tablet and load the images directly into a Python/Anvil report?

TIA

1 Like

Welcome back!

What do you mean by “directly”, in this particular case?

Hi, thank you for responding to my question. I mean, for example, if you had an Anvil database app which contained records for a number of stock items and you wanted to go into a particular stock record and take a photo (using a button on the app) of that item and have the photo saved directly to that record.
Hope that makes sense.
Thanks

You can definitely do that. I’m sure I’ve seen a forum post or two about image capture. Without kicking the wheels too hard you might need to cobble together an HTML component with an input tag and little bit of JS to return the dataurl, to use as blob media and save it to datatables.

Edit: I took a minute to do a quick forum search and found this, which looks like your easy answer.

Thank you socint; thats very helpful. I will give it a go.

1 Like

No problem at all, good luck!