---
title: "Discussion on \"Ionic 3 image uploading through camera as well as camera gallery\" | Hashnode"
description: "Discussion on \"Ionic 3 image uploading through camera as well as camera gallery\". ploadPic() {  \nlet that=this  \nlet imagefile = this.base64Image.split(',')[1] //this gets rid of the \"data:image/jpeg;base64,\" part of the file  \n\nlet uploadTask = firebase  \n  .storage()  \n  .ref(this.uid)  \n  .child(\"profile_pic\")  \n  .putString(im..."
url: "https://hashnode.com/posts/ionic-3-image-uploading-through-camera-as-well-as-camera-gallery-ba397b30eab0/632deaa63ac18d0d78a0089c"
---

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

Discussion

# [Ionic 3 image uploading through camera as well as camera gallery](https://blog.junaidahmed.dev/ionic-3-image-uploading-through-camera-as-well-as-camera-gallery-ba397b30eab0?utm_source=hashnode&utm_medium=feed)

ploadPic() { let that=this let imagefile = this.base64Image.split(',')\[1\] //this gets rid of the "data:image/jpeg;base64," part of the file let uploadTask = firebase .storage() .ref(this.uid) .child("profile\_pic") .putString(im...

Aug 7, 2018 · 1 min read · blog.junaidahmed.dev  
Read the article

## Written by

[Junaid Ahmed](https://hashnode.com/@junaidahmed)

@junaidahmed

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

A half-stack JavaScript developer with a focus on the frontend.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
