Solved

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

Posted on 2009-04-08
2
1,596 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:
udayakumarlm earned 500 total points
Comment Utility
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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Viewers will learn how the fundamental information of how to create a table.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

763 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now