• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Urgent: Displaying image from NSData
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Urgent: Displaying image from NSData


  • Subject: Urgent: Displaying image from NSData
  • From: <email@hidden>
  • Date: Sun, 21 Mar 2004 14:25:33 -0800 (PST)

Hello!

I am trying to display an image stored in a database.  It uploads fine..
showing it is the only issue.

The following is linked to the "data" attribute on my WOImage:

public NSData getTheImage()
    {
        ((Session)session()).fetchPhotoList();
        theImage = new
NSData(((((Session)session()).photoData.objectForKey((team.teamNumber()).toString())).toString()).getBytes());

	return theImage;
    }


This:
((((Session)session()).photoData.objectForKey((team.teamNumber()).toString())).toString()).getBytes()
shows the binary data of the required image with no problem (on a
system.out.println).  However, when I convert it to NSData, the data seems
to change.

Any ideas?

Thank you in advance,
Greg
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Urgent: Displaying image from NSData
      • From: David Elsner <email@hidden>
  • Prev by Date: Re: Stumped by nonfunctioning repetition
  • Next by Date: Re: 5.2.3 Problem with Schedualing
  • Previous by thread: Re: Where does the timestamp information come from?
  • Next by thread: Re: Urgent: Displaying image from NSData
  • Index(es):
    • Date
    • Thread