displaying a photo from a BLOB field

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
neomodus
Posts: 18
Joined: Fri Apr 13, 2012 10:27 pm

displaying a photo from a BLOB field

Post by neomodus » Sat Apr 21, 2012 6:24 pm

Hi
I have a photo saved in a BLOB sqlite database field which I want to display in an image container on a card
I try to pull the information from the database and store it in a variable mphoto using
put theDataA["photo"] into mphoto
then I try to display the photo in an image container called photo
put mphoto into image "photo"
None of this works
Can anyone help me with some code also how can I automatically size the photo so that it fits the image container?
Thanks
Neo

bangkok
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 937
Joined: Fri Aug 15, 2008 7:15 am

Re: displaying a photo from a BLOB field

Post by bangkok » Sat Apr 21, 2012 9:46 pm

Using the "search" function, you'll find several threads on this subject.

http://forums.runrev.com/phpBB2/viewtop ... =49&t=8320

http://forums.runrev.com/phpBB2/viewtop ... =12&t=5094

Post Reply