---
title: "Discussion on \"Converting a File to Base64 in angularJs\" | Hashnode"
description: "Discussion on \"Converting a File to Base64 in angularJs\". We’ll learn how to convert an image/pdf to base 64 in angularJs by creating a directive and adding extra parameters for the base 64 data\n\n<input type=\"file\" id=\"fileSelector1\" class=\"form-control\" name=\"schemeupload\" accept=\"image/jpeg,image/png,appl..."
url: "https://hashnode.com/posts/converting-a-file-to-base64-in-angularjs-9bd758ab2b63/671ce1acff822fd4226bef2e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Converting a File to Base64 in angularJs](https://blog.nidhin.dev/converting-a-file-to-base64-in-angularjs-9bd758ab2b63?utm_source=hashnode&utm_medium=feed)

We’ll learn how to convert an image/pdf to base 64 in angularJs by creating a directive and adding extra parameters for the base 64 data <input type="file" id="fileSelector1" class="form-control" name="schemeupload" accept="image/jpeg,image/png,appl...

Sep 9, 2018 · 2 min read · blog.nidhin.dev  
Read the article

-   [#angularjs](https://hashnode.com/tag/angularjs)

## Written by

[nidhinkumar](https://hashnode.com/@nidhinkumar)

@nidhinkumar · Coimbatore, Tamilnadu, India

  
[View profile](https://hashnode.com/@nidhinkumar)

Software Engineer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
