Hi There,
The RadBinaryImage in our application works well until Firefox upgraded to 43.0.1. Now the problem I am facing is that the image does not show unless I click or move the mouse on the page. I also noticed this issue only happens on gif files, not on jpeg files.
Here is the scenario: two pages included in this test demo, the first page has a linkbutton to open a radwindow, the second page is the RadBinaryImage to display a image file.
The following is my test code, please help, thank you.
Default.aspx:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="RadBinaryImageDefault.aspx.cs" Inherits="Default" %><!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> </head> <body> <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"> <script type="text/javascript"> function ShowWindow() { window.radopen("RadBinaryImageTest.aspx", "RadTestWindow"); return false; } </script> </telerik:RadCodeBlock> <telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="true"> <Windows> <telerik:RadWindow ID="RadTestWindow" runat="server" Title="Rad Binary Image" Height="500px" Width="500px" Left="150px" ReloadOnShow="true" ShowContentDuringLoad="false" AutoSize="false" Behaviors="Pin, Move, close, Resize" Modal="true" /> </Windows> </telerik:RadWindowManager> <form id="form1" runat="server"> <asp:ScriptManager ID="DefaultMasterScriptManager" runat="server"> </asp:ScriptManager> <div> <asp:LinkButton ID="lbl_click" runat="server" Text='Click' OnClientClick="return ShowWindow();" Visible="true"/> </div> </form> </body></html>
RadBinaryImageTest.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="RadBinaryImageTest.aspx.cs" Inherits="RadBinaryImageTest" %><%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %><!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title></title></head><body> <form id="form1" runat="server"> <div> <telerik:RadBinaryImage runat="server" ID="rbi_thumbnail" AutoAdjustImageControlSize="false"/> </div> </form></body></html>
RadBinaryImageTest.aspx.cs
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Drawing.Imaging;using System.IO;using System.Drawing;public partial class RadBinaryImageTest : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) { DisplayThumbnail(); } public void DisplayThumbnail() { rbi_thumbnail.DataValue = ImageToBinary("../../index.gif"); } public static byte[] ImageToBinary(string imagePath) { FileStream fileStream = new FileStream(imagePath, FileMode.Open, FileAccess.Read); byte[] buffer = new byte[fileStream.Length]; fileStream.Read(buffer, 0, (int)fileStream.Length); fileStream.Close(); return buffer; }}