Giter VIP home page Giter VIP logo

nativescript-azure-storage's Introduction

nativescript-azure-storage's People

Contributors

dolopes avatar dzfweb avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

nativescript-azure-storage's Issues

Corrupted File Getting Uploaded

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.

base64string.txt

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}`);
                    });   

Cannot read property 'CloudStorageAccount' of undefined

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.