Error when passing a file path to "Download Image" node while trying to import image at runtime

Hi folks,

I’m trying to load an image from a local file into a widget blueprint at runtime using the “Download Image” node. I’m passing it a string with the file path that looks something like this: file:///C:/Users/MyUser/.../.../.../UnrealProject/Content/image.png

I get an error that reads “request failed, libcurl error: 3 (URL using bad/illegal format or missing URL)”

As far as I know, the file path that I’m passing to the Download Image node is formatted correctly and I’ve seen others do it this way in the recent past, like at step 10 of this guide: Import Images During Runtime | Community tutorial

I’ve also tried with an image that’s not in the project directory in case that was causing the error but I get the same error.

Has anyone else experienced this error, and has anyone found a solution?

Maybe there’s an alternative way to import images at runtime?

Thanks!

1 Like

For local images, try this instead of download image

image

2 Likes

Wow this is perfect, I can’t believe I didn’t find this in all of my searching. Thank you!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.