Moamen189 / Base64

Convert any Photo with any Extension To Base64

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Photo to Base64 Converter

This is a simple ASP.NET MVC application that allows users to upload a photo and convert it to a Base64 encoded string.

Features

  • Upload a photo file.
  • Convert the uploaded photo to a Base64 encoded string.
  • Display the Base64 encoded string with line breaks after every 50 characters.
  • Preview of the uploaded image.

How to Use

  1. Clone this repository to your local machine.
  2. Open the solution in Visual Studio.
  3. Build and run the application.
  4. Navigate to the "Upload Photo" page.
  5. Choose a photo file and click "Upload".
  6. The application will convert the photo to a Base64 encoded string and display it with line breaks after every 50 characters.
  7. You can also see a preview of the uploaded image.

Technologies Used

  • C# ASP.NET MVC
  • HTML
  • CSS (Bootstrap for styling)
  • JavaScript

Folder Structure

  • Controllers/: Contains the controller logic for handling HTTP requests.
  • Models/: Contains the model classes.
  • Views/: Contains the view templates.
  • wwwroot/: Contains static files such as JavaScript, CSS, and images.

About

Convert any Photo with any Extension To Base64


Languages

Language:HTML 56.7%Language:C# 29.2%Language:CSS 11.8%Language:JavaScript 2.2%