English 中文(简体)
如何下载有自定义扩展名的拉链文件?
原标题:How can I download a zip file with a custom extension?

大多数印度公司都封锁了许多网站和下载,比如拉链和出纸文件。 我找到一个解决方案来探索谷歌 Docs 范围范围内的拉链文件,它使用大多数拉链文件格式,但下载或复制一个文件的时间很长。

我怎样才能从 URL 下载一个拉链文件?

我不是在寻找代理。 网站的解决方案也是可以接受的。 我会在我的网站上做这些修改, 而不是网站会让用户用其他扩展名下载文件。

问题回答

不清楚您正在做什么, 但是您总是可以下载文件的下载字节, 然后无论您需要什么, 包括以新的文件扩展名保存它 。

WebClient 使得下载文件相当容易。

string query = "http://website.com/my.zip"
string output = "C:/Downloads";
using (var client = new WebClient())
{
    client.DownloadFile(query, output);
    return true;
}




相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签