stack & IDE not responding during download

Matt Maier blueback09 at gmail.com
Sun Jun 4 11:58:44 EDT 2017


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



More information about the use-livecode mailing list