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

Enhanced for image on disc

1 Answer 62 Views
BinaryImage
This is a migrated thread and some comments may be shown as answers.
Per Holmqvist
Top achievements
Rank 2
Per Holmqvist asked on 28 Sep 2009, 07:20 AM
Would it be possible to enhance the Binaryimage so you could save only the filename in the SQLDB and read the image from disc?
It would benefit a lot for liveresize and so on....

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 28 Sep 2009, 10:43 AM
Hello Per,

If you would like to save only the name of the image in the database and keep its storage on the server disk, you can specify ImageUrl for the binary image as explained here or use regular asp Image control to achieve your goal. In case you perform editing operations in data bound control, you can embed the binary image or the standard asp Image in item template and MS TextBox inside edit template of a template column (the second would be to store the name of the image in the grid source).

Generally, the purpose of the RadBinaryImage control is to visualize an image streamed from byte array in the grid's data source.

Best regards,
Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
BinaryImage
Asked by
Per Holmqvist
Top achievements
Rank 2
Answers by
Sebastian
Telerik team
Share this question
or