Telerik
Skip Navigation LinksHome / Community / Forums / ASP.NET AJAX > Upload > Using RadUpload in an Ajaxified Grid - showimagecs.aspx

Not answered Using RadUpload in an Ajaxified Grid - showimagecs.aspx

Feed from this thread
  • Gregg avatar

    Posted on Jun 18, 2009 (permalink)

    Regarding this example http://demos.telerik.com/aspnet-ajax/controls/examples/integration/raduploadinajaxifiedgrid/defaultcs.aspx?product=upload

    Where is the code for the showimagecs.aspx page which handles displaying the image?

    Reply

  • Telerik Admin admin's avatar

    Posted on Jun 18, 2009 (permalink)

    Hi Gregg,

    The code behind is in the same folder. You can also view it from the code viewer control. See the attached screenshot.

    Sincerely yours,
    Albert
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
    Attached files

    Reply

  • Gregg avatar

    Posted on Jun 18, 2009 (permalink)

    Thanks! Was that there the whole time? I was expecting to see that file on one of the tabs. I never clicked on the drop down arrow to learn there are additional associated files in the drop down list. And special thanks for the quick reply.

    Reply

  • Julia avatar

    Posted on Jun 24, 2009 (permalink)

    Hi Albert,

    Clicking the "Image" which supposedly show the original size of uploaded image just shows garbage data.This happens in Firefox, but IE works as expected.

    Is there any work-around for Firefox?

    Thanks!


    Reply

  • Telerik Admin admin's avatar

    Posted on Jun 30, 2009 (permalink)

    Hello Julia,

    You need to modify the StreamOriginalDate method the following way:

     
    private void StreamOriginalImage(byte[] imageData) 
        { 
            Response.Clear(); 
                    Response.ContentType = "image/jpeg"; 
            Response.BinaryWrite(imageData); 
            Response.End(); 
        } 

    I.e to set the content type for the response, IE gueses that it is a JPEG and that is why it is working. However, Firefox wants the content type to be explicitly set.

    Sincerely yours,
    Genady Sergeev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.

    Reply

Back to Top

Skip Navigation LinksHome / Community / Forums / ASP.NET AJAX > Upload > Using RadUpload in an Ajaxified Grid - showimagecs.aspx
Related resourses for "Using RadUpload in an Ajaxified Grid - showimagecs.aspx"

ASP.NET Upload Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  |  Step-by-step Tutorial  ]

Powered by Sitefinity ASP.NET CMS

Contact Us | Site Feedback | Terms of Use | Privacy Policy
Copyright © 2002-2010 Telerik. All rights reserved.