aboutsummaryrefslogtreecommitdiff
path: root/src/app/services/cloudinary.service.ts
blob: 999e498e6f5b3658a2728dc4c79beca362b2abb9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import {HttpClient} from '@angular/common/http';
import {Injectable} from '@angular/core';
import {Observable} from 'rxjs';

@Injectable({
 providedIn: 'root'
})
export class CloudinaryService {
  constructor(private _http: HttpClient)
  { }

  getFileRequest(fileLink: string): Observable<Blob> {
    return this._http.get(fileLink, {
      responseType: 'blob'
    });
  }
}