Get image dimensions directly from URL in C#

后端 未结 2 1021
闹比i
闹比i 2021-02-13 21:48

I\'m trying to get dimensions from a picture directly from the web using this code:

string image = @\"http://www.hephaestusproject.com/.../csharp3.png\";
byte[]          


        
2条回答
  •  无人共我
    2021-02-13 22:35

    In a word, no.

    In a few more words, you would have to rely on there being a resource containing details of the dimensions of images on a given server. In 99.99% of cases that will simply not exist.

提交回复
热议问题