Skip to content

Commit

Permalink
debug 🤔
Browse files Browse the repository at this point in the history
  • Loading branch information
jcbang committed Sep 26, 2020
1 parent cf3144c commit 47be11e
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 0 deletions.
Binary file modified gene-pool-backend/.vs/gene-pool-backend/v16/.suo
Binary file not shown.
8 changes: 8 additions & 0 deletions gene-pool-backend/BlobStorageHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ public static async Task UploadLinkToBlobAsync(string url) {
File.Delete("hello.mp4");
File.Delete("hello.wav");

Console.WriteLine("I got here 1");

FileHelper.SaveVideoToDisk(url, "hello.mp4");
FileHelper.ToWavFormat("hello.mp4", "hello.wav");

Expand All @@ -29,17 +31,23 @@ public static async Task UploadLinkToBlobAsync(string url) {
containerClient = blobServiceClient.GetBlobContainerClient(containerName);
}

Console.WriteLine("I got here 2");

string fileName = $"hello.wav";

// Get a reference to a blob
BlobClient blobClient = containerClient.GetBlobClient(fileName);

Console.WriteLine("I got here 3");

Console.WriteLine("Uploading to Blob storage as blob:\n\t {0}\n", blobClient.Uri);

using FileStream uploadFileStream = File.OpenRead("hello.wav");
await blobClient.UploadAsync(uploadFileStream, true);
uploadFileStream.Close();

Console.WriteLine("I got here 4");

File.Delete("hello.mp4");
File.Delete("hello.wav");
}
Expand Down
Binary file modified gene-pool-backend/bin/Debug/netcoreapp3.1/gene-pool-backend.dll
Binary file not shown.
Binary file modified gene-pool-backend/bin/Debug/netcoreapp3.1/gene-pool-backend.pdb
Binary file not shown.
Binary file removed gene-pool-backend/helloworld.wav
Binary file not shown.
Binary file not shown.
Binary file modified gene-pool-backend/obj/Debug/netcoreapp3.1/gene-pool-backend.dll
Binary file not shown.
Binary file modified gene-pool-backend/obj/Debug/netcoreapp3.1/gene-pool-backend.pdb
Binary file not shown.

0 comments on commit 47be11e

Please sign in to comment.