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

Create Asset from a blob - StartCopyFromBlobAsync Method not found #43

Open
vinotheswaramoorthy opened this issue Sep 3, 2017 · 9 comments

Comments

@vinotheswaramoorthy
Copy link

vinotheswaramoorthy commented Sep 3, 2017

While i trying to create an asset in azure media service from my blob storage, it throws below error.

Method not found: 'System.Threading.Tasks.Task`1<System.String> Microsoft.WindowsAzure.Storage.Blob.CloudBlockBlob.StartCopyFromBlobAsync(Microsoft.WindowsAzure.Storage.Blob.CloudBlockBlob, Microsoft.WindowsAzure.Storage.AccessCondition, Microsoft.WindowsAzure.Storage.AccessCondition, Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions, Microsoft.WindowsAzure.Storage.OperationContext, System.Threading.CancellationToken)'.

I think StartCopyFromBlobAsync() method is deprecated.
How can i create a asset from blob?
Is there any alternate?
Thanks in advance.

@ryburn52
Copy link

ryburn52 commented Sep 6, 2017

Think this relates to issue #38
I made a pull request for a fix but waiting on someone to respond to it.

@johndeu
Copy link
Contributor

johndeu commented Sep 6, 2017

Thanks @Nitro52 , we will review this quickly. Sorry, lots of summer vacations and we are just getting back to these.

@ryburn52
Copy link

ryburn52 commented Sep 7, 2017

@johndeu that would be great, i would love to be able to use an official nuget build again.

@azizalibasic
Copy link

@johndeu Any update on this, I would like to use the official nuget also :)

@htuomola
Copy link

I got this error too. I'm just testing out Azure Media Services and thought that uploading a file to a blob and loading a blob to media services should be simple. Turns out I was wrong. After wading through the docs and samples, context.Assets.CreateFromBlob seemed exactly what I was looking for. Isn't it a pretty common use case - uploading files from browser to blob storage directly (they have a handy JS sdk for that and it worked easily) and then ingest those to Media Services?

@jasomimo
Copy link

@johndeu any update on this? Got the same problem. Want to use IAsset.Copy(), with latest Microsoft.WindowsAzure.Storage, but cannot because of the exception.

Also official example (https://docs.microsoft.com/en-us/azure/media-services/media-services-copying-existing-blob) on copying assets uses old version of Storage (I think 4.x) and when it is updated to latest would throw an error. Would be nice to update also example project, when it it's fixed. Thanks.

@johndeu
Copy link
Contributor

johndeu commented Nov 29, 2017

Thanks for pointing to the old docs example. We are going to be cleaning a lot of those up now that we transitioned to AAD support as well.
I'll double check on the Nuget issue again.

@sanbhatt
Copy link
Contributor

@jasomino which package version are you using? Could you please give the newer package 4.1.0.1 a try?

@jasomimo
Copy link

jasomimo commented Nov 30, 2017

@sanbhatt we are using windowsazure.mediaservices.extensions 4.0.0.4. I tried to update to 4.1.0.1, but it broke some other stuff in our solution. Need to work around that. Thanks for pointing out to newer version.

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

7 participants