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


NEW Mitsubishi A1SNMCA-8KE Memory Cassette picture

NEW Mitsubishi A1SNMCA-8KE Memory Cassette

$151.62



WIFI Audio Voice Recorder Live Real-Time Audio Thru App | Charger & 32GB SD Card picture

WIFI Audio Voice Recorder Live Real-Time Audio Thru App | Charger & 32GB SD Card

$129.00



New Sealed AB 2080-MEMBAK-RTC Memory Backup, Data Log, Recipe ,High Accuracy RTC picture

New Sealed AB 2080-MEMBAK-RTC Memory Backup, Data Log, Recipe ,High Accuracy RTC

$281.95



Argolladora We R Memory Keepers Heidi Swapp Cinch Binding Machine 71050-9 by AC picture

Argolladora We R Memory Keepers Heidi Swapp Cinch Binding Machine 71050-9 by AC

$79.99



1PC New ABB ACS880-MU-ZCU-12/14 ZMU-02 Inverter Memory Card 1year waranty picture

1PC New ABB ACS880-MU-ZCU-12/14 ZMU-02 Inverter Memory Card 1year waranty

$79.39



Modicon Memory Card AS-ME85-000 picture

Modicon Memory Card AS-ME85-000

$225.00







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