dzfweb / nativescript-azure-storage Goto Github PK
View Code? Open in Web Editor NEWAzure Storage for NativeScript
License: Other
Azure Storage for NativeScript
License: Other
Encountered this issue as I was trying to download a newly uploaded blob.
Well its more a question than an issue.
Hi, I am getting corrupted file on my storage, here in the code it shows upload successfully but, when we download that uploaded file or try to view it its says corrupted image. I also crosschecked the base64String, its a valid base64 string for that particular image.
The generated base64 string is also attached for reference.
Snippet For Upload Code:
this.azureStorage.uploadBlob(this.azureCredentials.ContainerName, `${this.azureCredentials.BlobPath}/${file.name}`, base64string)
.then(() => {
console.log(`Uploaded successfuly`);
})
.catch((err) => {
console.log(`Error uploading: ${err}`);
});
Hi,
I am trying to save the video into Azure Container as a Blob, which was taken by camera using Nativescript-Videorecorder. I am using tns-android: 3.4.2
While trying to create azureStorage i am getting exception.
My command is:
let azureStorage = new NativeScriptAzureStorage('DefaultEndpointsProtocol=https;AccountName=XXXX;AccountKey=XXXXXX==');
Below is the Error:
JS: ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'CloudStorageAccount' of undefined
JS: TypeError: Cannot read property 'CloudStorageAccount' of undefined
JS: at new NativeScriptAzureStorage (file:///data/data/com.studentms.app/files/app/tns_modules/nativescript-azure-storage/nativescript-azure-storage.js:10:58)
JS: at file:///data/data/com.studentms.app/files/app/pages/activity/studentactivityAdmin.component.js:451:32
JS: at ZoneDelegate.invoke (file:///data/data/com.studentms.app/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:365:26)
JS: at Object.onInvoke (file:///data/data/com.studentms.app/files/app/tns_modules/@angular/core/bundles/core.umd.js:4156:37)
JS: at ZoneDelegate.invoke (file:///data/data/com.studentms.app/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:364:32)
JS: at Zone.run (file:///data/data/com.studentms.app/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:125:43)
JS: at file:///data/data/com.studentms.app/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:760:57
JS: at ZoneDelegate.invokeTask (file:///data/data/com.studentms.app/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:398:31)
JS: at Object.onInvokeTask (file:///data/data/com.studentms.app/files/app/tns_modules/@angular/core/bundles/core.umd.js:4147:37)
JS: at ZoneDelegate.invokeTask (file:///data/data/com.studentms.app/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:397:36)
JS: at Zone.runTask (file:///data/data/com.studentms.app/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:165:47)
JS: at drainMicroTaskQueue (file:///data/data/com.studentms.app/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:593:35)
Please help me to resolve this issue.
Regards
Madhan
Hi.
Is this compatible with a nativescript+angular app?
If it is, could you provide some hints on how can I use it in an existing component?
Thanks in advance. Great work!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.