Accessing compressed fields within the db3 files

Technical support and discussion of Newsbin Version 6 series.

Accessing compressed fields within the db3 files

Postby rwayneross » Thu Apr 28, 2016 1:02 pm

I am trying to access the data within the db3 files (to automate some NZB creations and downloading). I believe that (years ago) the compressed fields used ZLIB to decompress the data (specifically NN_CleanSubject and NN_FileData fields) but now in my new project I get an 'unknown compression method' when I try to decompress the fields. Did the compressor change for those fields (or maybe my decompress library just out of date or something)?

Thanks.
rwayneross
Occasional Contributor
Occasional Contributor
 
Posts: 14
Joined: Wed Nov 03, 2010 1:24 pm

Registered Newsbin User since: 05/10/02

Re: Accessing compressed fields within the db3 files

Postby Quade » Thu Apr 28, 2016 2:12 pm

It's still zlib.

You might want to check if it's got a zlib header on it or not.

"CleanSubject" isn't compressed data. It's a hash.

NN_FileData is compressed with Zlib.

Also keep in mind that starting with 6.70 the StorageData is going away on all new groups. Instead the FileData data will be stored with the rest of the data. It'll still be used for existing groups so there's no conversion.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 44988
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97


Return to V6 Technical Support

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 2 guests