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

Azure media service, upload file asset from a Stream. #45

Open
anorsich opened this issue Nov 8, 2013 · 12 comments
Open

Azure media service, upload file asset from a Stream. #45

anorsich opened this issue Nov 8, 2013 · 12 comments

Comments

@anorsich
Copy link

anorsich commented Nov 8, 2013

Hi,

I am integrating with azure media service and trying to find a way to upload file to windows media service from a Stream that is coming with request. I don't want to store it on a disk first, like on line 69 here.

Am I missed something? Or save file to a disk is only one way to go?

Thank you for your time.

@Juliako
Copy link
Contributor

Juliako commented Nov 8, 2013

The following example demonstrates how to upload a stream.
http://code.msdn.microsoft.com/How-to-Upload-a-Stream-to-40ab9cc3

@Juliako
Copy link
Contributor

Juliako commented Nov 8, 2013

The following example demonstrates how to upload a stream.
http://code.msdn.microsoft.com/How-to-Upload-a-Stream-to-40ab9cc3

From: Andrew Orsich [mailto:notifications@github.com]
Sent: Friday, November 8, 2013 09:14
To: WindowsAzure/azure-sdk-for-media-services
Subject: [azure-sdk-for-media-services] Azure media service, upload file asset from a Stream. (#45)

Hi,

I am integrating with azure media service and trying to find a way to upload file to windows media service from a Stream that is coming with request. I don't want to store it on a disk first, like on line 69 herehttps://github.com/WindowsAzure/azure-sdk-for-media-services/blob/dev/samples/Windows%20Azure%20Media%20Services%20Getting%20Started%20Sample/C%23/MediaServicesGettingStarted/Program.cs#L69)

Am I missed something? Or save file to a disk is only one way to go?

Thank you for your time.


Reply to this email directly or view it on GitHubhttps://github.com//issues/45.

@AlexShkor
Copy link

I think it should be in SDK

@gtrifonov
Copy link
Member

Thanks AlexShkor,anorsich for feedback we are targeting to have upload from stream functionality to appear in our sdk extensions https://github.com/WindowsAzure/azure-sdk-for-media-services-extensions first and based on community feedback move to sdk core

@vadim-kor
Copy link

yes, this feature could save lots of our time. Hope to see it soon. Thanks!

@anorsich
Copy link
Author

Is it part of extensions already?

Right now I am doing following:

  1. In worker instance I am downloading file from blob storage and storing it in a temp folder.
  2. Then upload to media service from a file.

It worked well until we was in development. Today, in production, someone uploaded file which is bigger than 100mb. All uploads are failing now. Worker role does not allow to store temp file which is bigger than 100mb. Once at least one file stored it start throw "Not enough space exception".

This is crazy!

Thank you for your time.

@vadim-kor
Copy link

anorsich ,

Worker role does not allow to store temp file which is bigger than 100mb.
You should use the local storage instead of user temp files.

@polarapfel
Copy link
Member

Just for reference: the Java SDK solves file upload exclusively through the Java Stream abstraction, so any inheritance from Stream can then be used. I think it should be the same way in the .NET SDK.

@lineker
Copy link

lineker commented Oct 14, 2014

Any news on this?

@jamestharpe
Copy link

The link to the example no longer works - can you please post an update?

@georgechond94
Copy link

How to upload a stream to Azure Media Services This is the link with the Sample Code. Hope it helps!

@poveilleux
Copy link

Hi,
I'd like to have an ETA on the support of the UploadFromStream() (and DownloadToStream()) in the SDK Core OR in the Extensions.
Thank you
P-O

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants