BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 01-28-2009, 12:03 PM   #1
markdude
New Member
 
Join Date: Dec 2008
Model: 8310
PIN: N/A
Carrier: Cellcom
Posts: 3
Cool BBThumbs.dat

Please Login to Remove!

Hi All,
I've code that converts JPG to thumbnails. The problem is sometime picture is too big to process in memory, and I've out of memory exception.
I've noticed there a file called BBThumbs.dat in Blackberry picture folder, and I wonder if I can display it instead making thumbs from all pictures manually.
How can I import BBThumbs.dat into my program?

Please help,
markdude
Offline  
Old 01-29-2009, 05:07 AM   #2
Ivanov
Talking BlackBerry Encyclopedia
 
Join Date: Apr 2008
Location: Germany, BW
Model: -
PIN: N/A
Carrier: -
Posts: 310
Default

I looked at the format of that file some time ago and here is what I think about it.

It contains a sequence of thumbnails in PNG format. The .dat file contains a RIM's own header (first 37 Byte) and footer (last 41 Byte).

After the header begins the PNG signature: 89h 50h 4Eh 47h 0Dh 0Ah 1Ah 0Ah
Each png contains 3 CHUNKs: IHDR, IDAT, IEND
The end of the PNG file is right after the IEND Chunk: AEh 42h 60h 82h

after it follwos again the header and the signature of the next png thumbnail.

So it should be quite easy to write a parser for it to extract all thumbnails (or one specific). I don't know what kind of information is contained in RIM's header, but the most important would be the file name which is readable.

If you write a parser for it, I would be happy to see your code here
__________________
Blessed is the end user who expects nothing, for he/she will not be disappointed. (Franklin's Rule)

Last edited by Ivanov; 01-29-2009 at 05:11 AM..
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


4 Count Case GE ProLine 2 Bulb 120V T12 Electronic Fluorescent Light Ballasts picture

4 Count Case GE ProLine 2 Bulb 120V T12 Electronic Fluorescent Light Ballasts

$49.99



Inter-Global IG13-20EL electronic ballast 120v New Common Aquarium Light Ballast picture

Inter-Global IG13-20EL electronic ballast 120v New Common Aquarium Light Ballast

$19.95



PHILIPS ADVANCE Core-Coil Ballast Kit 71A5389- 1-100W M90 Metal Halide.FreeShip picture

PHILIPS ADVANCE Core-Coil Ballast Kit 71A5389- 1-100W M90 Metal Halide.FreeShip

$22.99



Keystone KTEB-232RIS-1-TP-SL Electronic Ballast, 2-Lamp, 32W T8, F32T8, 120V picture

Keystone KTEB-232RIS-1-TP-SL Electronic Ballast, 2-Lamp, 32W T8, F32T8, 120V

$19.89



3 Point Ballast Box Category 1 Tractor Quick Tach Hitch Counterweight Red Heavy picture

3 Point Ballast Box Category 1 Tractor Quick Tach Hitch Counterweight Red Heavy

$195.99



Philips ADVANCE AmbiStar RELB-2S40-N Replacement Ballast 40-Watt 2-Lamp T12 picture

Philips ADVANCE AmbiStar RELB-2S40-N Replacement Ballast 40-Watt 2-Lamp T12

$18.79







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.