Maximum Uri Length Image in Silverlight

Does anyone know what the maximum URL length is in Silverlight (version 4, if that matters)? I know this is 2048 and basically endless for Firefox (the two environments I tested in), but image requests fail for a long time Uri. Does anyone know a magic number (this is the maximum file length of a file is 256)? This is significantly less than 2048 for IE ...

+3
source share
1 answer

According to the .NET Framework library for Silverlight, a schema Urican be 1024, and a full one Urican be up to 65519 characters. This is true for both v3 and v4.

Hope this gives you some tips.

EDIT

Ok, ok, after a lot of testing, I was able to track the limit for the image URL.

The scheme refers to the part http.

The whole Uricannot be longer than 2047 , after which it seems that it no longer uploads the image. However, I could not find any official arguments.

The fact that you get exceptions AG_E_NETWORK_ERRORhas nothing to do with length Uri.

However, you can check to see if there are any illegal characters in your URI:

, XAML, '&' "% 26".

+3

Source: https://habr.com/ru/post/1743863/


All Articles