How to add images in C#

Question:I just wanna know how to add an image into the repl and allow it to be seen


Repl link:

code snippet

For graphical content, a HTML repl would be better. You can upload images from

  • your device: (in the sidebar) click ⋮ > Upload file
  • the internet: run in Shell:
curl https://example.com/image.png -O

You can use Blazor for a C# web app and then possibly transfer the .wasm output to a HTML repl for production (as it has static hosting).

3 Likes