Can't load thumbnail photo from file 'BBThumbs.dat'

Hi everybody,
I'm developing an application on BB to take and view photo. My problem is can't load the thumbnail photos from file 'BBThumbs.dat'. I'm using code as below:
public byte[] getThumb(String fileName) {
String DB = fileName.substring(0, fileName.lastIndexOf('/'))
+ "/BBThumbs.dat";
fileName = fileName.substring(fileName.lastIndexOf('/') + 1, fileName
.length());
if (thumbsMap == null) {
thumbsMap = new Hashtable();
byte b[] = null;
FileConnection fc = null;
InputStream in = null;
try {
fc = (FileConnection) Connector.open(DB, Connector.READ);
if (!fc.exists()) {
return null;
byte[] temp=new byte[(int)fc.fileSize()];
in = fc.openInputStream();
DataInputStream is=new DataInputStream(in);
// b = getThumbNail(first, thumbsMap, fileName, in);
is.readFully(temp);
b=readThumbs(temp, fileName);
} catch (Exception e) {
} finally {
if (fc != null) {
try {
fc.close();
} catch (Exception e) {
if (in != null) {
try {
in.close();
} catch (Exception e) {
return b;
please give my any idea or suggestions. Thanks 

Try:
!Section=Dimensions
'Name;DimensionClass;DimensionAlias;CustomDimensionID
SKU;Generic;;
!Members=SKU
'Name;DataType
Brand1;Unspecified
Brand2;Unspecified
!Hierarchies=SKU
'Parent;Child;DataStorage
#root;Brand1;StoreData
#root;Brand2;StoreData
Tho I would add MemberValidForPlan#;Plan#Aggregation, where # is a number of your application which this member is valid for or even has a specific aggregation, as well
example:
!Hierarchies=SKU
'Parent;Child;DataStorage;MemberValidForPlan1;MemberValidForPlan2;MemberValidForPlan3;Plan1Aggregation;Plan2Aggregation;Plan3Aggregation;UDA
#root;Brand1;StoreData;Y;Y;Y;+;+;+;
#root;Brand2;StoreData;Y;Y;Y;+;+;+;
Even more as an idea use pipes, maybe.
But you will need to say something about Aliases as well if this is a planning application.

Similar Messages

  • I can't load my photos from my iphone to my Macbook, please help!

    I connected my iphone threw itunes and tried to download my photos to iphoto by selecting ‘Import to Library…’ in the Menu Bar under File. I got these directions form the “iphone User’s Guide” that a family member found for me off the Internet. I am still with out a solution besides emailing each individual (147 photos from my Las Vegas vacation trip) to my email that I just successfully set up. If anyone has figured out this quite annoying problem, I would appreciate your solution, thank you! ☺

    open up iphoto with the phone connected to the computer. in iphoto you will see the iphone in the list in the left hand column. select the phone and then select the import button at the bottom.

  • How can I use a photo from my files as a screen saver?

    I have an LG monitor about 10" high and 16" wide.  How can I send a photo from my Adobe files to my desktop as a screen saver.  Because of the odd dimensions of this monitor, the one I have as a screensaver now does not show the entire photo. I need instructions how to choose one of my photos, send it to the monitor as a screen saver, and make it the correct size to show the entire photo.

    You'll need to download the song from your cd to your my music folder, then open Itunes files add files or folder to the library then you find your song from your my music folder.   Then you will have to create the ringtone:
    http://http://www.ehow.com/how_2160460_custom-iphone-ringtones-free.html
    follow the instruction to create then sync the ringtones.

  • How can I find a photo from the backup file in my pc?

    How can I find a photo from the backup file in my pc?
    I have accidentally erased a photo. It happened after the backup.

    I am not aware you can extract a single photo or a single app's content from the backup, you can either restore the whole backup to your phone or not restore. If you restore your last backup to your phone then any content that is currently on your phone will be replaced with what was on it at the time that the backup was made - so if you do decide to restore, first copy off any purchases to your computer's iTunes via File > Transfer Purchases, and copy any documents/files that you've udpated on the phone since the backup.

  • How can I attach a photo from iPhoto to mail as a file and not just put it on the email itself?

    How can I attach a photo from iPhoto to mail as a file and not just put it on the email itself?

    Souvent eu ce problème,
    Je cree un dossier sur le bureau et glisse les photos à partir d'Iphoto dans ce dossier. Ce geste a pour effet de creer des copies dans le dossier.
    Il ne reste plus qu'à selectionner ces photos pour les envoyer en pièces jointes.

  • After loading my photos from my iPhone to my mac iPhotos it prompts me to delete photos from my iPhone.  When I agree to this my photos never delete.  my iPhone is out of storage due to I can't delete photos.  What am I doing wrong?

    After loading my photos from my iphone to my mac iphoto it gives me the option to delete photos on my phone.  When I click to delete the photos do not delete from my phone.  I am out of storage due to I can not delete photos from my iphone.

    That problem is probably with your iPhone and not with iPhoto.
    But try to download again to your Mac, this time use "Image Capture" instead of iPhoto.
    Launch Image Capture from your applications folder.
    Connect your phone to a USB port.
    Select all the photos in your camera roll  to be deleted.
    Then press the "delete" key.
    If there are photos on your iPhone that have been synced with iTunes, they can only be deleted by syncing again and deselecting the albums:
    http://support.apple.com/kb/HT4236
    If even Image Capture cannot wipe your Camera Roll, you need to trouble shoot your iPhone. Try the three R's, reset, restart, restore. http://support.apple.com/kb/TS3281

  • Can't load Music/photo CD's. Keeps ejecting.

    Can't load Music/photo CD's. Keeps ejecting. Can load DVD's and use them on screen. Can create music CD from Playlist, but can't replay on iMac, just ejects. Will play created music CD, OK on regular CD player. Discussed the problem Apple support via Chat and have tried resetting SMC. No joy.  Have to use a work around by taking same Music and Photo CD's to Macair and loading them, then transferring files via memory stick.
    Any ideas would be appreciated
    Diggs1936

    Alright, if you loaded music from a CD to iTunes and then connected the iPhone, you need to make sure that syncing music is selected before you sync. That, or you can select manually manage music and click and drag songs over to the iPhone. Check with the manual here http://manuals.info.apple.com/en_US/iPhone_iOS4_User_Guide.pdf and see if that helps you out. Come back if you need more.
    Or, try this Apple Support document http://support.apple.com/kb/HT1351
    Message was edited by: ChrisJ4203

  • How can I get all photos from iPhoto to automatically back up to iCloud from my Mac OSX Version 10.6.8 operating system.  Not enough memory to upgrade.

    How can I get all photos from iPhoto to automatically back up to iCloud from my Mac OSX Version 10.6.8 operating system.  Not enough memory to upgrade.

    You can't.  iCloud is not for general file backup from a Mac. It's for backup up and syncing data between mobile devices and and Macs and  The following is from this Apple document: iCloud: Backup and restore overview.
    iCloud automatically backs up the most important data on your (mobile) device using iOS 5 or later. Once you have enabled Backup on your iPhone, iPad, or iPod touch .....
    What is backed up
    You get unlimited free storage for:
    Purchased music, movies, TV shows, apps, and books
    Notes: Backup of purchased music is not available in all countries. Backups of purchased movies and TV shows are U.S. only. Previous purchases may not be restored if they are no longer in the iTunes Store, App Store, or iBookstore.
    Some previously purchased movies may not be available in iTunes in the Cloud. These movies will indicate that they are not available in iTunes in the Cloud on their product details page in the iTunes Store. Previous purchases may be unavailable if they have been refunded or are no longer available in the iTunes Store, App Store, or iBookstore.
    You get 5 GB of free iCloud storage for:
    Photos and videos in the Camera Roll
    Device settings (for example: Phone Favorites, Wallpaper, and Mail, Contacts, Calendar accounts)
    App data
    Home screen and app organization
    Messages (iMessage, SMS, and MMS)
    Ringtones
    Visual Voicemails
    But not from a Mac.  If you want to backup your photos and other important files I suggest you get an external hard drive and use  it with Time Machine.
    OT

  • Can I use the new Time Capsule to backup my mid 2010 Macbook Pro? Also can I want to free up my hard disk, can I save my photos and files on the time capsule and later access through wifi?

    Can I use the new Time Capsule to backup my mid 2010 Macbook Pro? Also can I want to free up my hard disk, can I save my photos and files on the time capsule and later access through wifi?

    Can I use the new Time Capsule to backup my mid 2010 Macbook Pro?
    Yes, if you are asking about using Time Machine to backup the Mac.
    Also can I want to free up my hard disk, can I save my photos and files on the time capsule and later access through wifi?
    You are not thinking of deleting the photos and files on your Mac, are you?  If you do this, you will have no backups for those files.
    Another concern is that Time Machine backs up the changes on your Mac. At some point, Time Machine will automatically delete the photos and files from the Time Capsule.....you just don't know when this might occur.
    In other words, only delete files from your Mac that you can afford to lose.

  • How can I move a photo from one project to another

    How can I move a photo from one project to another without creating a duplicate so I have the same photo in two projects.
    I seems to me in the past when I moved the photo from project 1 to project 2, I would get a number showing the # of photos being moved and you could drag and drop in the 2nd folder and the photos would disappear from project 1 and show up in project 2. is there a setting I am missing.  Now when I drag and drop the photo no red # shows up and the photo stays in project 1 and also shows up in project 2 apparently creating a duplicate.
    Any suggestion?

    Now when I drag and drop the photo no red # shows up and the photo stays in project 1 and also shows up in project 2 apparently creating a duplicate.
    The projects are the basic containers.  Each image and all its versions are in exactly one project.
    You can use an image in many albums, without duplicating it, also in many products like books, screensaver, slideshows.  But the projects are the basic structure of the library and you cannot have the same image in two different project, without duplicating it by storing the same original image files twice. Use albums to organize your library thematically.
    Sorry, I misread your question.   Dragging an image file between projects should move the image and all its versions to the other project.  Aperture should only duplicate the image, if you hold down the alt/options key while dragging and move the image otherwise.
    Which Aperture version are you using? And which MacOS X version?  Is your profile signature "MacBook Pro with Retina display, Mac OS 9.2.x, Aperture 3.5.1" still valid?
    In Aperture 3.6 on MacOS X 10.10.1 dragging between projects is still working as expected:

  • Can no longer sync Photos from Airport Disk

    I can no longer sync photos from my Airport Disk to my tv.
    This used to work fine- When I first got the tv I checked the "sync photos from" option in the photos tab in iTunes, navigated to my network drive/ pictures folder and hit sync. The photos slowly copied over.
    Just this week however, I went to add some new pictures and iTunes/ tv no longer sync. The status bar just spins saying "Syncing"...I have left it overnight with no change.
    I have recently updated to the latest version of iTunes and Airport Extreme firmware, but that is about it in terms of changes/updates. Anyone have any ideas?
    - Firewall is off
    - Permissions seem ok on the Airpot Disk. Everything is read/write
    - I have rebooted/ reset/ re-synced everything. It just hangs on Photos. Music etc go over fine.
    Specs:
    iMac G5 PowerPC
    Airport Extreme N base station with OWC USB drive attached as airDisk
    tv 1.0 40 gig - using ethernet connection to router
    iTunes 7.4.2
    I am really stumped! I think that the airport disk permissions or mount are still suspect but dont know what else to check.
    Does iTunes spit out a log or write to the console? Any help would be very much appreciated.
    Thanks,
    AC

    I think I have figured it out, and photos are syncing now.
    Here is what I believe happened: There is an iTunes generated folder called "iPod Photo Cache" in my "Pictures" folder on my Airpot Disk. This folder gets generated by iTunes whenever you designate a location for syncing. The "iPod Photo Cache" folder contains a file called "Photo Database".
    It looks like the "Photo Database" had been corrupted. Deleting this file, or alternatively, moving my pictures to a new folder and letting iTunes regenerate the Photo Database fixed the problem.

  • As of a few days ago, I can no longer import photos from my Nikon Coolpix s7c into iPhoto. Never before had a problem. (it is the version prior to iPhoto 11--all Apple software is UTD)

    As of a few days ago, I can no longer import photos from my Nikon Coolpix s7c into iPhoto '08. Never before had a problem.  I sent a request to Nikon for help and they referred me back to Apple.  Help, if possible, please.

    As the photos imported to the test library you know that it works with your version of iPhoto (so, you can skip the paranoia about Apple making you upgrade). The issue then is the Library, so
    Try these in order - from best option on down...
    1. Do you have an up-to-date back up? If so, try copy the library6.iphoto file from the back up to the iPhoto Library (Right Click -> Show Package Contents) allowing it to overwrite the damaged file.
    2. Download <a href="http://www.fatcatsoftware.com/iplm/"><b><u>iPhoto Library Manager</b></u></a> and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.
    3. If neither of these work then you'll need to create and populate a new library.
    To create and populate a new *iPhoto 08* library:
    Note this will give you a working library with the same Events and pictures as before, however, you will lose your albums, keywords, modified versions, books, calendars etc.
    In the iPhoto Preferences -> Events Uncheck the box at 'Imported Items from the Finder'
    Move the iPhoto Library to the desktop
    Launch iPhoto. It will ask if you wish to create a new Library. Say Yes.
    Go into the iPhoto Library (Right Click -> Show Package Contents) on your desktop and find the Originals folder. From the Originals folder drag the individual Event Folders to the iPhoto Window and it will recreate them in the new library.
    When you're sure all is well you can delete the iPhoto Library on your desktop.
    In the future, in addition to your usual back up routine, you might like to make a copy of the library6.iPhoto file whenever you have made changes to the library as protection against database corruption.

  • My MacBook Pro does not recognize my Android Incredible 2 cell phone and I can not transfer my photos from my cell phoen to my Mac. I was able to do this in the past, but can no longer do so. i havenot upgraded to any new software.

    My MacBook Pro does not recognize my Android Incrdible 2 cell phone and therefore I can not transfer any photos from my cell phone to my Mac. I was able to do this in the past, but can not do so now. I have not upgraded to any new software. My USB cable is plugged in properly and I just get an error message -- "No Android Device Found". What could be the problem?

    I had the same issue with the Galaxy S4 trying to see what the hype was about and was my first and last android phone. With that being said unfortunately it is a hit or miss with the Mac recognizing an android device or not.  It worked perfectly fine the first time around and then it stopped working for no apparent reason. Through trial and error nothing I did solved the issue.   I did however plug it in my Mac and left it connected for about 30-40 min to charge for a bit and all of the sudden it recognizes the phone. So I just launched Android File Transfer and everything else became fluid after that.    I have no explanation as to why it happened that way, but what I gathered from this is maybe you just have to let it sit for a minute while plugged in before the Mac recognizes it, after all they are opposing software.  On a side note this is why I will always be an apple user, Iphones and the like never have this problem

  • Can we load and unload the files in the run time?

    Can we load and unload the files in the run time?
    For example there are four files named "test1.h & test1.c" and another set "test2.h & test2.c" (I attached them as attachment to this post).
    test1.h contains code:
    int variable; //variable declared as integer
    test1.c contains code:
    variable = 1; //variable assigned a value
    test1.h contains code:
    char *variable; //variable declared as string
    test1.c contains code:
    variable = "EXAMPLE"; //variable assigned a string
    So here, in this case can I dynamically load / unload the first & second group of files so that the same variable name "variable" can be used both as integer and string? And if yes, how is that to be done?
    Solved!
    Go to Solution.
    Attachments:
    test.zip ‏1 KB

    What do you mean by "dynamically"?
    If you want to have a variable that either is an int or a char in the same program run, I'm afraid your only option is to define it as a variant and assign from time to time the proper data type in the variant according to some condition. Next, every time you access the variable you must firstly check which data type is stored in it, next access it in the proper way.
    If on the other hand your option or to have a run in which the variable is an int, next you stop the program and in a following run it is a char, you may have it by using some appropriade preprocessor clause:
    #ifdef  CHAR_TYPE
    #include "test1.h";        // variable defined as a char
    #else
    #include "test2.h";        // variable defined as int
    #endif
    Next, every time you want to access the variable you must proceed in the same vay:
    #ifdef  CHAR_TYPE
      variable = "string";
    #else
      variable = 1;
    #endif
    Does it worth the effort?
    Additionally, keep in mind that this "dynamical" approach can work only in the IDE, where you can properly #define your CHAR_TYPE or not depending on your wishes: when you compile the program, it will have only one #include depending on the definition of the macro.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • I can't load some content from my external hard drive to itunes,

    I can't load some content from 1 of my external hard drive to itunes, it can see it and try to load the folder / files but it doesn't appear, these files worked recently as some of them are currently on my ipod touch - I had to factory restore my laptop this week (virus) so have been trying to put everything back on to sync ipod - any ideas???

    To delete files from your external HDD, attach it to your MBP and drag the unwanted files to trash and then empty trash.
    Then you select the files that you want to transfer by 'drag and drop' to the external HDD and trash the files on your MBP.
    Ciao.

Maybe you are looking for

  • LookUpSet is Not working for multiple columns in SSRS 2008 R2

    Hi Friends, I have a problem when i use more than one LookUpSet in SSRS to display more than one value based on Day Number & other fields..Please find the below details and please suggest me a solution for this. Crystal :                  Day1      

  • I can't Update Garageband iMac21.5-inch, Mid 2011

    I cant update garageband to 6.05 ... App Store says i have update available but when i try to update ... there is an error ... i have an imac 21.5 garageband was preinstalled.. tyied to download and this messege apperse ....

  • My CS can't start with error code 16

    How can I find the CS5.5 serial number under MAC OS X if I want to reinstall it? My CS can't start with error code 16, it says configuration error.

  • Tracking Discoverer report and the Users

    Hi Is there a standard process or a query which helps us to monitor the list of Discoverer reports running (or scheduled) and the users who are running it, Please let me know thanks for the time Regards Ramesh Kumar S

  • How to delete a iweb website

    I published a website and i did a couple of things wrong i want to delete the sight and start over. how do i delete my website?