Download

Upload Image from PC to the Game

Hi,

Can someone point me in the right direction on how to set up a widget blueprint where the user can select an image from their PC and set it as the new image of the widget. Something like setting an avatar. Can this be done in blueprints?

No i think not, because when u package your game, engine only cook things in your project folder, so your image will be missing. Try to import them to unreal :smiley:

This can definitely be done as I’ve recently done something similar in my game, check out this code: https://gist.github.com/error454/16a9ab4c61b247bd8857

EDIT: This isn’t a Blueprint capable thing but can be exposed to Blueprints.

Grab Rama’s Victory Plugin:
(39) Rama's Extra Blueprint Nodes for You as a Plugin, No C++ Required! - Blueprint Visual Scripting - Unreal Engine Forums!
There are nodes for saving images to and loading images from disk.
Its based on code we’ve been using in Ground Branch for ages to load and display arm & hat patches.

Are u kidding me? You can do it in multiplayer game, and let the player upload an image from their PC to the game? can u do it Kris? U ARE SUPPER.
Edit: Btw, can u make a tutorial how can u do that? i really need it too :smiley:

No, read it again :slight_smile:

Uploading from client to server then to another client is a different set of problems.

Thanks for the help!

simple old node “download image” work perfectly in a packaged game Filesystem, user can upload image to the game? - UE4 AnswerHub