Saving img to mySQL

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

terryho
Posts: 126
Joined: Mon Nov 05, 2012 2:53 pm

Re: Saving img to mySQL

Post by terryho » Sun Oct 17, 2021 4:35 pm

Hi

Attach simple is for your reference.

Please create a temp folder in c:, like "c:\temp"

Which the livecode script will read the table and image file in "c:temp"

The save blob in sqlite is some different with mysql or odbc, so there is 2 method to insert blob data in sqlite db

I think in mysql will need base64encode to storage blob field, but in my case I don't need base64encode to storage blob in firebird db.

Please try the sample and test it, which work in my machine.

Regards

Terry Ho
Attachments
sqliteblob.zip
(14.69 KiB) Downloaded 76 times

simon.schvartzman
Posts: 641
Joined: Tue Jul 29, 2014 12:52 am
Location: Brazil

Re: Saving img to mySQL

Post by simon.schvartzman » Sun Oct 17, 2021 4:41 pm

Thanks Terry, actually my issue is not how to insert the data on the table (that was already answered with the help of Elanor in a previous post). I was wrong about the possibility of recovering the image just by downloading from the DB without any further manipulation. I concluded this is not possible and therefore I dropped the project.

But again many thanks again for your suggestion.

Regards
Simon
________________________________________
To ";" or not to ";" that is the question

Post Reply

Return to “Talking LiveCode”