English 中文(简体)
查阅档案(编辑)
原标题:get extension of file(edit)

i 想要获得尿素的延伸档案。

for example get extension http://www.iranfairco.com/download-file/02912bb889cb24. if extension this file is gif.

http://www.un.org。

for example this url "http://www.online-convert.com/result/d8b423c3cbc05000cc52ce7015873e72"

请帮助我如何能够扩大这一ur?

最佳回答

为什么 Path.GetExtension 你们不工作?

EDIT
Ah, so your url doesn t specify the extension you are after. That means anything could be behind it.

仅通过检查这艘船的扼杀价值,你就可以看看看它背后什么。 阁下(第二)对案卷(最后)的点,但也可以是案卷(甚至.)。

You will need to do a webrequest to see what you get back. Usually you could try a HEAD to get just the headers (and inspect the content type), but I don t think that will work here. Try Fiddler to see what you get back, then you can refine your question.

问题回答

如下:

rel=“nofollow” http://www.java2s.com/Code/CSharp/Network/GetHTTPResponseheaders.htm

你将有兴趣做出回应。 给你像“im/if”一样的图像

审判

string path = @"http://www.iranfairco.com/download-file/02912bb889cb24.gif";
 string e = Path.GetExtension(path );

看来,“URL”可能与一个网页连接,下载文件。

<代码>02912bb889cb24或许是该文档的一个数据库参考资料。

因此,如果无法利用该系统的任何预报,我根本不认为它有可能为通过URL系统查阅的档案延期。

你们只能把脚.分开。 在返回的阵列中最后摆放。





相关问题
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. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签