I asked the AI to write a python asyncio to download images asynchronously.Try is able to download the image, do not know how to write the image binary file directly to the JMP table without saving.
Thanks Experts!
If I remember correctly one method can be found from here Scripters Club Recording: Running Python Code within JSL
In JMP 18, only JSL can script putting images into the table.
Well, AI is still pretty smart.
I don't understand how it works
I had previously warned the AI to call JSL in this way
jmp.run_jsl = ''' dt = Data Table("ImageTable"); dt[{i + 1}, "Image"] = New Image(Open("{data_url}")); '''
Anyone trying to puzzle it out: the white text is python. the red text is jsl. the python format replaces the {} in the red jsl string (delimited by triple quotation marks) with the two parameters. the base64data is the binary data of a png or jpg file, encoded as base64, which is what newimage needs.
The only part I'm surprised by is blending the two languages, although lala suggested almost the correct solution in the next post.