Skip to content

How to display images from the server in a Blazor application

License

Notifications You must be signed in to change notification settings

CodingWithDavid/BlazorDisplayImages

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Blazor Display Images

This project was created to help me learn and remember displaying an image in a Blazor Application.

by David Gallivan

Why

I wanted to be able to display an image file within a Blazor page. During my research I realized that there is very little difference between displaying an image in Blazor as compared to displaying it in a HTML page. So, I decided to add a couple of other features to my application.

I will be using the Blazor Server configuration for this application. We can do this with the Client-side configuration, but you need an API to access the server files.

Getting Started

  1. Clone this repository

    git clone https://github.com/CodingWithDavid/BlazorDisplayImages
    cd BlazorDisplayImages
  2. Open in Visual Studio or Visual Code a. With Visual Code you will need to install the C# extensions

  3. Press F5

What's in the App

Get a list of files on the server

Display at list in a Blazor page

Provide a UI effect to zoom in on the image

Problems or Suggestions

Open an issue here

Thank You

Resources

About

How to display images from the server in a Blazor application

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published