Skip to content
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

Corrupted File Getting Uploaded #6

Open
mohnishanjaria opened this issue Sep 11, 2018 · 0 comments
Open

Corrupted File Getting Uploaded #6

mohnishanjaria opened this issue Sep 11, 2018 · 0 comments

Comments

@mohnishanjaria
Copy link

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}`);
                    });   
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant