-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
readAsArraybuffer issue #908
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can you help me please with this problem?
i want to store files on firebase .
i have all files with the same size in storage firebase (16 B ),and when i open them there are no content.
`import { Component } from '@angular/core';
import { File} from '@ionic-native/file/ngx';
import { FileChooser } from '@ionic-native/file-chooser/ngx';
import { FilePath } from '@ionic-native/file-path/ngx';
import { FireBaseService } from '../services/firebase-service.service'
@component({
selector: 'app-home',
templateUrl: 'home.page.html',
styleUrls: ['home.page.scss'],
})
export class HomePage {
fileforSending ;
fileUri :string;
filePath :string;
fileName :string;
fileType :string;
buffer ;
entry;
constructor(
private fireService:FireBaseService,
private fileChooser:FileChooser,
private file :File,
private pathConverter :FilePath) {
}
choose(){
this.fileChooser.open()
.then(uri => {
//getting URI of a choosen file
this.fileUri = uri;
return this.file.resolveLocalFilesystemUrl(this.fileUri);
}
}
`
import { Injectable } from '@angular/core';
import {AngularFireDatabase} from "@angular/fire/database";
import {AngularFireStorage} from "@angular/fire/storage";
@Injectable({
providedIn: 'root'
})
export class FireBaseService {
}
export { FireBaseService as ExportedClass };
The text was updated successfully, but these errors were encountered: