Hey guys! So recently I've run into the need to display from an URL.
I have this so far, yet I get the same error.
"|D|image.jpg: Error while reading image file.
Here is the code, I would appreciate any help. Thanks in advance!local loader = UrlLoader.new("https://picsum.photos/200/300/?random")
local function onComplete(event)
local out = io.open("|D|image.png", "wb")
local b = Bitmap.new(Texture.new("|D|image.png"))
local function onError()
local function onProgress(event)
print("progress: " .. event.bytesLoaded .. " of " .. event.bytesTotal)
Also, I tried jpeg as well. I don't think the type is the problem here.