What’s the easiest way to preview compressed image data stored in a database column using C#?
I’m working with a C# Windows Forms application where I need to preview image data stored in a database column of type IMAGE
from a Legacy Database. However, the data in this column seems to be compressed using BLOBZIP
, and I’m encountering issues while trying to read and display the images.
I have tried various libraries and methods to decompress and preview this data, including: SharpZipLib, SharpCompress and BZip2Sharp, but I keep running into errors.
The issue seems to be similar to the problem discussed here, but that question does not address the scenario where the data is compressed and obviously, I came here after a long search.
Has anyone successfully handled the decompression of image data stored in an IMAGE
column that has been compressed with BLOBZIP
? If so, could you please share the approach or code examples that worked for you?
Thank you!