Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/asifbacchus/absolutions.imagetobase64

DotNET Core library to retrieve an image file and convert it to Base64. Includes Blazor component to insert as an image.
https://github.com/asifbacchus/absolutions.imagetobase64

blazor c-sharp class-library dotnet dotnet-core library

Last synced: about 1 month ago
JSON representation

DotNET Core library to retrieve an image file and convert it to Base64. Includes Blazor component to insert as an image.

Awesome Lists containing this project

README

        

# A-B Solutions: ImageToBase64 library and Blazor Component

This repository contains two (2) separate primary libraries:

1. `ABSolutions.ImageToBase64`: Retrieves an image file from the local file system or a remote source (via HTTP/S) and converts it to a Base64 string with a data URI scheme.
2. `ABSolutions.ImageToBase64.BlazorComponent`: A Blazor component that uses the `ABSolutions.ImageToBase64` library to convert an image file to a Base64 string and display it in an HTML image tag.

Usage details and release notes can be found in the README.md files of each library.

This repository also includes demo projects for each library:

- `ABSolutions.ImageToBase64.Demo.Api`: A simple ASP.NET Core Web API demonstrating the operation of the `ABSolutions.ImageToBase64` library. The API has one endpoint that returns the Base64-encoded string representation of a remote image and another endpoint that returns a webpage displaying that image.
- `ABSolutions.ImageToBase64.Demo.Blazor`: A Blazor Server (SSR) application that uses the `ABSolutions.ImageToBase64.BlazorComponent` library to display a Base64-encoded image retrieved from a remote source.

Each demo project is fully explained in the documentation of the respective library.