Every time my script downloads an image the entire interface and IDE locks
up and says "not responding" until the download finishes. I tried adding
"lock screen" but that didn't help.

*lock* screen

*put* tImg into tDis["img_thing"]

*set* the httpHeaders to "Content-Type: application/json" & cr &
"Authorization:
Bearer" && pToken

*put* jsonfromarray(tDis) into tPayload

*if* sMode is "test" *then*

*post* tPayload to URL "
https://howstr.bubbleapps.io/version-test/api/1.0/wf/get_img";

*else*

*post* tPayload to URL "https://howstr.bubbleapps.io/api/1.0/wf/get_img";

*end* *if*

*put* arrayfromjson(it) into tResponseA

*put* tResponseA["response"]["image"] into tNewImage

*put* tResponseA["response"]["filename"] into tNewImageName

*put* base64decode(tNewImage) into url ("binfile:" & tNewFolder & "/" &
tNewImageName)

*unlock* screen
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to