BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 01-28-2009, 12:03 PM   #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, 05: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 05: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

Measurement Computing USB-1608FS 16-Bit, 200 kS/s DAQ 8 SE Sim Analog Inputs NI
$224.99
Measurement Computing USB-1608FS 16-Bit, 200 kS/s DAQ 8 SE Sim Analog Inputs NI pictureComputer Boards Inc 3495 Analog Input Board ISA Bus
$365.0
Computer Boards Inc 3495 Analog Input Board ISA Bus picturePCIM-DDA06/16 MI1 194380A-01 Measurement Computing 6-Channel 16-Bit PCI Analog
$786.0
PCIM-DDA06/16 MI1 194380A-01 Measurement Computing 6-Channel 16-Bit PCI Analog pictureComputer Boards Inc. 9827 Rev 1 Analog Input Board ISA Bus
$297.0
Computer Boards Inc. 9827 Rev 1 Analog Input Board ISA Bus  pictureComputer Boards Inc. CIO-DAS1600/12 Analog and Digital I/O Board
$49.0
Computer Boards Inc. CIO-DAS1600/12 Analog and Digital I/O Board picture






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