Convert Image from cell to Byte

Posted by: maximusdebois on 25 July 2021, 9:35 am EST

  • Posted 25 July 2021, 9:35 am EST

    I have an image in sql server that i have displayed on a flexgrid cell using ownerdraw. The image is stored in byte in sql server. I saw a code snippets from here where you can convert a byte into an image in flexgrid, now I want to convert the image in the cell back to the original byte it came with.

  • Posted 26 July 2021, 5:34 am EST

    Hello Maximus,

    I hope for changing the Byte array to imager you have taken reference from the given link:

    https://www.grapecity.com/forums/winforms-edition/flexgrid-cell-show-picture

    There is no need to convert the image to a Byte array again as the data of the cell is still a byte array as you can check it using the GetData method of the FlexGrid.

    If you need any other help, please let us know.

    Regards,

    Prabhat Sharma.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels