diff --git a/MConnectSDK/Utils.cs b/MConnectSDK/Utils.cs index 2cb54c4..64af534 100644 --- a/MConnectSDK/Utils.cs +++ b/MConnectSDK/Utils.cs @@ -919,7 +919,17 @@ namespace MConnectSDK try { string imgEncoded = Uri.EscapeDataString(imagePath); - string fullImgPath = pageURL + imgEncoded + "?alt=media"; + string fullImgPath = ""; + // se ho imagePath che inizia per http --> assoluto, altrimenti faccio un inserimento PRE della pageURL + if (imgEncoded.StartsWith("http")) + { + fullImgPath = imgEncoded + "?alt=media"; + } + else + { + fullImgPath = pageURL + imgEncoded + "?alt=media"; + } + using (Stream response = await cHttpClient.GetStreamAsync(fullImgPath).ConfigureAwait(false)) { //if()