Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save maneeshaindrachapa/b462c154a80635f8df6f40d600ced6a9 to your computer and use it in GitHub Desktop.
Save maneeshaindrachapa/b462c154a80635f8df6f40d600ced6a9 to your computer and use it in GitHub Desktop.
import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
@Injectable()
export class ImageProvider {
base64img:string='';
url:'http://vortexmobievotingapp.000webhostapp.com/imageUpload.php';
constructor(public http: HttpClient) {
}
setImage(img){
this.base64img=img;
}
getImage(){
return this.base64img;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment