Jump to content

calling .Net Experts. QUESTION


Recommended Posts

Posted

Question:

how to download a video from WEB API url.  

I got a URL(ex: "http:/api/download/y=example.avi") , when I hit event, it should fire that and download the video to my local machine.

challenges:

1,.Avi video file.

2,  I have found some solution in online, most of them are to download small files like ".png, .excel, .word" but my request is to download big video (~300MB)

much appreciated for any proper solution.

 

I tired something like this..

                HttpResponseMessage response = new HttpResponseMessage(HttpStatusCode.OK);
                var fileStream = new FileStream(fullPath, FileMode.Open);
                response.Content = new StreamContent(fileStream);
                response.Content.Headers.ContentType = new MediaTypeHeaderValue("application/octet-stream");
                response.Content.Headers.ContentDisposition = new ContentDispositionHeaderValue("attachment");
                response.Content.Headers.ContentDisposition.FileName = "Test";
                return response;

but no luck.

 

Jai Balaya

 

Posted

YOU ONLY NEED TO FIND YOURSELF,  EVERYTHING ELSE CAN BE googled

Posted
2 minutes ago, tacobell fan said:

YOU ONLY NEED TO FIND YOURSELF,  EVERYTHING ELSE CAN BE googled

@3$%

Posted
2 hours ago, tacobell fan said:

YOU ONLY NEED TO FIND YOURSELF,  EVERYTHING ELSE CAN BE googled

Jai balayya 

Posted

WebClient.DownloadFile 

eppudu avasaram padaledhu.. good to know

Posted

check ngflow library. It downloads by chunks. Very good one

Posted
4 minutes ago, PhillyDotNetGuy said:

check ngflow library. It downloads by chunks. Very good one

uncle proofs please.. 

Posted
2 minutes ago, Biskot2 said:

uncle proofs please.. 

try zch.downloader by Zayen Chagra 

MSBuilder.DownloadFile - downloads a file from a URL to a destination directory or file path

Posted
3 hours ago, Biskot2 said:

Question:

how to download a video from WEB API url.  

I got a URL(ex: "http:/api/download/y=example.avi") , when I hit event, it should fire that and download the video to my local machine.

challenges:

1,.Avi video file.

2,  I have found some solution in online, most of them are to download small files like ".png, .excel, .word" but my request is to download big video (~300MB)

much appreciated for any proper solution.

 

I tired something like this..

                HttpResponseMessage response = new HttpResponseMessage(HttpStatusCode.OK);
                var fileStream = new FileStream(fullPath, FileMode.Open);
                response.Content = new StreamContent(fileStream);
                response.Content.Headers.ContentType = new MediaTypeHeaderValue("application/octet-stream");
                response.Content.Headers.ContentDisposition = new ContentDispositionHeaderValue("attachment");
                response.Content.Headers.ContentDisposition.FileName = "Test";
                return response;

but no luck.

 

Jai Balaya

 

so shameful, jai balaya .. jai bullshit... jai pk....... jai .. jai. xyz..

Posted
42 minutes ago, EzMcSquare said:

so shameful, jai balaya .. jai bullshit... jai pk....... jai .. jai. xyz..

andhuku man

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...