Search found 604 matches
- Tue Oct 19, 2021 8:57 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Looking for help with CURL form request (on mobile)
- Replies: 2
- Views: 2260
Looking for help with CURL form request (on mobile)
Hi all, I hit the wall (again) trying to request a CURL that uses form syntax... The original CURL I'm trying to submit is like this curl --location --request POST 'https://XXX.com/api/v2/photos/' \ --header 'Authorization: Bearer YYY' \ --form 'visit_id="custom_visit_141020214319311"' \ --form 'pho...
- Tue Oct 19, 2021 10:29 am
- Forum: Talking LiveCode
- Topic: Help with CURL request...
- Replies: 1
- Views: 2250
Re: Help with CURL request...(SOLVED)
I got it working...it maybe helpful for others so here it goes put "accept: application/json" & cr into tHeader put "Content-Type: application/json" & cr after tHeader set the httpHeaders to tHeaders put quote & "login" & quote & ":" & quote & "YYYYYYYYY" & quote & "," & CR into tMsg put quote & "pa...
- Mon Oct 18, 2021 10:14 pm
- Forum: Talking LiveCode
- Topic: Help with CURL request...
- Replies: 1
- Views: 2250
Help with CURL request...
Hi all, first time trying to handle a CURL request with LC and after hitting the wall (and reading several posts and dictionary entries) for several hours I decided to ask for your kind and customary help This is the CURL I need to post in order to get an authorization token curl -X 'POST' \ 'https:...
- Sun Oct 17, 2021 4:41 pm
- Forum: Talking LiveCode
- Topic: Saving img to mySQL
- Replies: 16
- Views: 13063
Re: Saving img to mySQL
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 possi...
- Thu Oct 14, 2021 6:03 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: share option
- Replies: 11
- Views: 6280
Re: share option
As @Klaus would say, have a look at the dictionary and also search for examples in the forum...
- Thu Oct 14, 2021 10:11 am
- Forum: Talking LiveCode
- Topic: Saving img to mySQL
- Replies: 16
- Views: 13063
Re: Saving img to mySQL
Thanks @SparkOut, nice catch and you are right, fixing the typo didn't fix the error ...
Regards
Regards
- Thu Oct 14, 2021 10:04 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: share option
- Replies: 11
- Views: 6280
Re: share option
HI Samuele, check "mergPopActivity" to share on iOS and "mobileComposeMail" to share on Android.
Hope it helps.
Best
Hope it helps.
Best
- Wed Oct 13, 2021 10:27 pm
- Forum: Talking LiveCode
- Topic: Saving img to mySQL
- Replies: 16
- Views: 13063
Re: Saving img to mySQL
Hi Terry, many thanks for your suggestion. I've tried to adapt your code to my table as follows: if gConnectionID is not a number then exit to top end if export snapshot from image "lcLogo" with metadata theMetadataArray to tData as JPEG put formatDate() into tImageName -- use current datetime as pi...
- Tue Oct 12, 2021 2:01 pm
- Forum: Talking LiveCode
- Topic: Saving img to mySQL
- Replies: 16
- Views: 13063
Re: Saving img to mySQL
For the records. After reading more about mySQL column types ( I should have done this sooner...) my conclusion is that is not possible to achieve what I was trying to. The way to go is to store the image as a file in the server and have the link to the file stored in the DB. Many thanks to all of y...
- Tue Oct 12, 2021 10:18 am
- Forum: Talking LiveCode
- Topic: Saving img to mySQL
- Replies: 16
- Views: 13063
Re: Saving img to mySQL
Hi Elanor as stated in my original post I want to export a snapshot of the screen (as an image) to mySQL DB in such way that once downloaded from the DB "as is" (by any non LC client) it could be opened by any standard image viewer. In other words when I click on the BLOB column of the mySQL server ...
- Mon Oct 11, 2021 5:39 pm
- Forum: Talking LiveCode
- Topic: Saving img to mySQL
- Replies: 16
- Views: 13063
Re: Saving img to mySQL
Dear Elanor, I really appreciate the time you spend helping me. The good news: using revExecuteSQL gConnectionID, "INSERT INTO images(TimeStamp, imagename, image) VALUES (CURRENT_TIMESTAMP, :1, :2)", "tImageName", "*btData" there is no error and a new record is added to the table with the correct da...
- Mon Oct 11, 2021 4:31 pm
- Forum: Talking LiveCode
- Topic: Saving img to mySQL
- Replies: 16
- Views: 13063
Re: Saving img to mySQL
Hi Elanor, many thanks for your hints. I have tested both options with no luck revExecuteSQL gConnectionID, "INSERT INTO images('TimeStamp', 'imagename', 'image') VALUES (CURRENT_TIMESTAMP, :1, :2)", "tImageName", "*btData" throws You have an error in your SQL syntax; check the manual that correspon...
- Sat Oct 09, 2021 4:00 pm
- Forum: Talking LiveCode
- Topic: Saving img to mySQL
- Replies: 16
- Views: 13063
Re: Saving img to mySQL
Hi Klaus, many thanks for spending time to look into it, here it goes: I have a stack with an Image field named "lcLogo" command SaveTomySQL if gConnectionID is not a number then exit to top end if export snapshot from image "lcLogo" with metadata theMetadataArray to tData as JPEG put formatDate() i...
- Thu Oct 07, 2021 5:29 pm
- Forum: Talking LiveCode
- Topic: Saving img to mySQL
- Replies: 16
- Views: 13063
Saving img to mySQL
Hi all, this is a very basic subject but since it is taking me too long to make it work I decided to ask for help. I want to export a snapshot of the screen (as an image) to mySQL DB in such way that once downloaded from the DB "as is" (by any non LC client) it could be opened by any standard image ...
- Fri Oct 01, 2021 1:19 pm
- Forum: Off-Topic
- Topic: what is meaning of Server and Addon
- Replies: 5
- Views: 4082
Re: what is meaning of Server and Addon
sorry to ask, I'm curious: Subscribed to what exactly?