Current filter:
                                You should refresh the page.
                                Support Center
                                0
                                  • Hello,

                                    I am trying to convert an ASPxImage to a byte array to save into a SQL Server database, I can't seem to find a property for the image itself just the ImageURL. Am I missing something?

                                    Thanks,
                                    Aaron

                                0

                                Hi Aaron,

                                The ASPxImage just shows an image represented by a certain Url. If you want to save this image to the DB, you should load the corresponding image from the disk, convert it to a byte array and save. Also, we provide the ASPxBinaryImage control which can work with the in-memory images and provides the ContentBytes property.

                                Thanks,
                                Plato

                                0

                                Hey Plato,

                                I found a workaround, I'm going to pull the bytes from my already loaded dataset and that worked. Thanks for your help!

                                Thanks,
                                Aaron

                                0

                                You are always welcome :)

                                Thanks,
                                Plato

                                To start a chat you should create a support ticket


                                If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

                                FOLLOW US

                                DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, Silverlight, ASP.NET, WinForms, HTML5 or Windows 8, DevExpress tools help you build and deliver your best in the shortest time possible.

                                Copyright © 1998-2014 Developer Express Inc.
                                All trademarks or registered trademarks are property of their respective owners