Solved

Work with compressed data in BLOB-field (SPIS, tcompress)

Posted on 2009-04-08
2
1,646 Views
Last Modified: 2012-05-06
I have to work with a database which is filled by a third party program.

It seems that part of the contents (also text contents) is stored in a BLOB-field (of type 'image') where it is compressed with (as far as I could find out) tcompress.

Data in a field typically start with "0x535049531A4C4835" which could be read as "SPISLH5". Searching for that I found something about tcompress.  

This is something new for me, and searches on internet did not bring me much information. Can someone provide me with some more information about this.

* How can I extract information in these fields to readable text (I am quite sure there is text in it)
* Are there any tools to enable querying such fields, or should I just forget about that.




0
Comment
Question by:sybe
2 Comments
 
LVL 12

Accepted Solution

by:
udaya kumar laligondla earned 500 total points
ID: 24096042
I have to work with a database which is filled by a third party program.

It seems that part of the contents (also text contents) is stored in a BLOB-field (of type 'image') where it is compressed with (as far as I could find out) tcompress.

Data in a field typically start with "0x535049531A4C4835" which could be read as "SPISLH5". Searching for that I found something about tcompress.  

This is something new for me, and searches on internet did not bring me much information. Can someone provide me with some more information about this.

* How can I extract information in these fields to readable text (I am quite sure there is text in it)
* Are there any tools to enable querying such fields, or should I just forget about that.

you have to write an application to read the contents of the blob field.
the follwoing article explains how to read the field data
http://www.akadia.com/services/dotnet_read_write_blob.html
then you need to decompress the the contents using tcompress. you can get the tcompress component and documentation at
http://webcentre.co.nz/compress.htm
you can not do this in TSQL
0
 
LVL 28

Author Comment

by:sybe
ID: 24107897
I hoped for something more then just some links. Blobs are not new for me.

But the documentation for TCompress is for Delphi applications. I am using asp.net, and it seems unusable with vb.net or c#.
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question