我有以下C#代碼,從數據庫設置圖像值。圖像不顯示,無法顯示圖像。它的工作,直到我做了網址重寫。url重寫後無法顯示AspImage
ASPxBinaryImage Icon = (ASPxBinaryImage)e.Item.FindControl("IconImage");
Icon.Value = Convert.FromBase64String(string.IsNullOrEmpty(N.Icon) ? "" : N.Icon);
我有以下C#代碼,從數據庫設置圖像值。圖像不顯示,無法顯示圖像。它的工作,直到我做了網址重寫。url重寫後無法顯示AspImage
ASPxBinaryImage Icon = (ASPxBinaryImage)e.Item.FindControl("IconImage");
Icon.Value = Convert.FromBase64String(string.IsNullOrEmpty(N.Icon) ? "" : N.Icon);
我已經改變了網址重寫的規則,現在它的工作。
你可以檢查與提琴手或類似的東西會發生什麼請求?因爲還有一個來自DevEx幫助的請求:ASPxBinaryImage使用Value屬性來存儲一個字節數組,DevExpress框架將其轉換爲
,其中src請求DevExpress實現的URL來爲字節流提供服務。 –