Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1047253
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T16:16:20+00:00 2026-05-16T16:16:20+00:00

I am getting this exception while retriving data from address book. I have check

  • 0

I am getting this exception while retriving data from address book. I have check through internet but not get any help for that.


Overflow allocating bitmap backing store. Cannot back bitmap with 320 bytes per row, -2147483648 height, and 1 planes

I am using AddressBook Framework for retriving data from Address Book. is this issue of Memory or it due to getting information of avatar that i have set in Addressbook contact.

Please help. If any suggestion or recommendations for it then please give it…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T16:16:20+00:00Added an answer on May 16, 2026 at 4:16 pm

    Thanks for your reply

    As you have said, I have checked all the code for drawing large an image or view. And found the below function that i have used for resizing image. Now resizing image will be done on server side. I have more doubts for this issue. You can check it in below block of code. Now waiting from customer for this issue.

    Thanks again for your help.

    -(NSData *)getCompressedImageDataFromData:(NSData *)imData
    {
        NSImage *pImage = [[[NSImage alloc] initWithData:imData] autorelease];
    NSSize orgSize = [pImage size];
    int widthInput, heightInput;
    widthInput = orgSize.width;
    heightInput = orgSize.height;
    if(widthInput <= 72 && heightInput <= 72)
        return imData;
    double newheight = heightInput;
    NSSize   newSize;
    if(widthInput >= 72)
    {
        double ratio;
        ratio = widthInput / heightInput;
        newheight = 72 / ratio;
        newSize = NSMakeSize (72, newheight);
    }
    else
        newSize = NSMakeSize(widthInput, newheight);
    NSImage *outputImage = [[[NSImage alloc] initWithSize:newSize] autorelease];
    
    if(![outputImage isValid])
        return nil;
    
    [outputImage lockFocus];
    
    [[NSGraphicsContext currentContext] setImageInterpolation:NSImageInterpolationHigh];
    
    
    [pImage drawInRect:NSMakeRect(0, 0, newSize.width, newSize.height)
              fromRect:NSZeroRect operation:NSCompositeCopy fraction:1.0];
    
    [outputImage unlockFocus];
    NSData *imageData = [outputImage TIFFRepresentationUsingCompression:NSTIFFCompressionJPEG factor:0];
    
    return [imageData mutableCopy];
    }
    

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am getting this exception while accessing the jax-ws web service from my client.
I am getting this exception while I am trying to call an activity from
I am getting this exception while trying to generate a .PDF file from my
I am getting this exception while running any JSP on my tomcat5.5 server.Do I
I am Getting a run time Exception while using this code Runtime rt =
I am getting Following Exception while configuring the Connection Pool in Tomcat This is
I am getting this exception: Collection was modified; enumeration operation may not execute. Directly
Hi I am getting this exception while running the mobile form page in asp.net.
HI I am getting this exception when I am calling any stored procedure from
I am getting this exception while trying to call SOAP webservice using axis. basically

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.