RadBinaryImage not working properly with Firefox 43.0.1

4 posts, 0 answers
  1. Don
    Don avatar
    15 posts
    Member since:
    May 2011

    Posted 23 Dec 2015 Link to this post

    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>
     
        <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>
     
    <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;
        }
    }

  2. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    1798 posts

    Posted 24 Dec 2015 Link to this post

    Hi Don,

    I have tested the exact scenario that you have with our latest version and after the automatic upgrade of Firefox (it upgraded to a beta version - 44.0b1) and everything is working correctly on my end with gif images. With that in mind I could only assume that this is some browser issue, related with the rendering engine of the browser, which is resolved in newer versions.


    Best Regards,
    Konstantin Dikov
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Don
    Don avatar
    15 posts
    Member since:
    May 2011

    Posted 04 Feb Link to this post

    Hi There,

    Unfortunately, the same problem still happening in Firefox version 44.0. Could you please retest and make sure you don't move the mouse after click the "Click" button. Please help. Thanks.

  5. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    1798 posts

    Posted 05 Feb Link to this post

    Hi Don,

    I have tested the same example with Firefox version 44.0 with the attached gif file, but everything is working correctly on my side. You could try with the attached gif file and see if the issue is replicated with it. 

    However, please keep in mind that this is a browser issue and there is nothing that could be done on our side to resolve it.



    Regards,
    Konstantin Dikov
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top