This is a migrated thread and some comments may be shown as answers.

Using RadUpload in an Ajaxified Grid - showimagecs.aspx

4 Answers 75 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Gregg
Top achievements
Rank 1
Gregg asked on 18 Jun 2009, 03:17 PM
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?

4 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 18 Jun 2009, 03:33 PM
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.
0
Gregg
Top achievements
Rank 1
answered on 18 Jun 2009, 03:40 PM
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.
0
Julia
Top achievements
Rank 1
answered on 24 Jun 2009, 08:33 AM
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!


0
Genady Sergeev
Telerik team
answered on 30 Jun 2009, 09:16 AM
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.
Tags
Upload (Obsolete)
Asked by
Gregg
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Gregg
Top achievements
Rank 1
Julia
Top achievements
Rank 1
Genady Sergeev
Telerik team
Share this question
or