BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 01-28-2009, 11:03 AM   #1 (permalink)
New Member
 
Join Date: Dec 2008
Model: 8310
PIN: N/A
Carrier: Cellcom
Posts: 3
Post Thanks: 0
Thanked 0 Times in 0 Posts
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, 04:07 AM   #2 (permalink)
Talking BlackBerry Encyclopedia
 
Join Date: Apr 2008
Location: Germany, BW
Model: -
PIN: N/A
Carrier: -
Posts: 310
Post Thanks: 0
Thanked 0 Times in 0 Posts
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 04:11 AM.
Offline  
Closed Thread


Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

OEM Vintage Apple Design Powered Speakers M2497 USED WORKING
$32.0
OEM Vintage Apple Design Powered Speakers M2497 USED WORKING pictureNEW Genuine OEM Apple Wireless Magic Keyboard and Magic Mouse Combo Bluetooth
$99.95
NEW Genuine OEM Apple Wireless Magic Keyboard and Magic Mouse Combo Bluetooth picture(C21) Genuine OEM Apple AC Cord
$25.0
(C21) Genuine OEM Apple AC Cord picture4 x Black Inkjet Cartridges Non-OEM Alternative For T1291
$11.3
4 x Black Inkjet Cartridges Non-OEM Alternative For T1291 picture2PCS Foxconn Oem Original Genuine Apple iPhone 7 iPhone Lightning USB Cable
$11.42
2PCS Foxconn Oem Original Genuine Apple iPhone 7 iPhone Lightning USB Cable picture






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