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

RadBinaryImage doesn't show

4 Answers 172 Views
BinaryImage
This is a migrated thread and some comments may be shown as answers.
Beat
Top achievements
Rank 1
Beat asked on 27 Jul 2009, 09:13 PM
Hello,

I try to add a RadBinaryImage to my Webform after I clicked a certain row in my RadGrid.
Funny is that the GridBinaryImageColumn shows the thumbnail of the Image clearly but the RadBinaryImage (big image) won't show anything afterwords...

Code looks like this:
  RadBinaryImage img = new RadBinaryImage();
  img.DataValue = GetVideoById(videoId).FrontImage;
  img.AutoAdjustImageControlSize = false;
  img.Width = 600;
  img.Height = 300;
  cell = new HtmlTableCell();
  cell.Controls.Add(img);
  row = new HtmlTableRow();
  row.Cells.Add(cell);
  table1.Rows.Add(row);
  placeImg.Controls.Add(table1); -> Placeholder for table

Thanks for help!
Beat

4 Answers, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 28 Jul 2009, 11:36 AM
Hi Beat,

How and where are you creating the image? What is the type of data passed to the DataValue of the control? Does the control behave in the same manner at your end, when it is not dynamically created?

Greetings,
Yavor
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
Beat
Top achievements
Rank 1
answered on 28 Jul 2009, 06:12 PM
Hi Yavor,

Thanks for the reply.
I'm creating the image right after the user clicked the specific row in the grid (list of dvds). With the dvdId which I read from the selected row I'm gonna load the image (byte[]) from the dvdList and write it to the DataValue of the image.
B.t.w. the imageControl behaves the same way when I put the control into the aspx-code (non-dynamically).
Funny though when I add a RadBinaryImageColumn the picture is shown correctly in the grid.

Thanks,
Beat
0
Beat
Top achievements
Rank 1
answered on 28 Jul 2009, 08:38 PM
Hi Yavor,

Solved the issue :-) Since my source image file was a tiff file i had to use the BinaryImageTransformationFilter.

Thanks for your time!
Beat
0
Cory Hudson
Top achievements
Rank 2
answered on 28 Jun 2010, 10:34 PM
Beat,

Any chance you can explain further how you went about using the BinaryImageTransformationFilter to achieve your goal?
Tags
BinaryImage
Asked by
Beat
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Beat
Top achievements
Rank 1
Cory Hudson
Top achievements
Rank 2
Share this question
or