aboutsummaryrefslogtreecommitdiff
path: root/src/app/services/cloudinary.service.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/services/cloudinary.service.ts')
-rw-r--r--src/app/services/cloudinary.service.ts17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/app/services/cloudinary.service.ts b/src/app/services/cloudinary.service.ts
new file mode 100644
index 0000000..999e498
--- /dev/null
+++ b/src/app/services/cloudinary.service.ts
@@ -0,0 +1,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'
+ });
+ }
+}