• 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
Retrieving and displaying images
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Retrieving and displaying images


  • Subject: Retrieving and displaying images
  • From: Janine Sisk <email@hidden>
  • Date: Mon, 9 Apr 2007 19:54:27 -0700

Ok, on to the next problem.

I have two images I've stored in the database, an original and its thumbnail.  I know the data in the database is good;  I can download them via FrontBase Manager and look at them in Preview.  However, when I try to display the thumbnail in my component like so:

Thumbnail : WOImage {
data = aPanel.images.thumbnail;
mimeType = "image/jpeg";
}

All I get is the missing image marker.  The String fields in aPanel are displaying, so I know things are generally working, just not the images.  BTW, images is the name of the relationship between two EOModels.  Do I have to do something to get the "foreign" items to fetch?  I tried checking the "perform deep inheritance fetch" box in EOModeler, since that sounded vaguely relevant, but it didn't help.

After I get past that, I have two more things I'm stumped on, might as well get them in the queue now:

1. I want to display the thumbnail as a hyperlink which will take the user to the bigger image.  I'm unsure of what to use as the action of the hyperlink, to return the big image.

2.  Right now I have these fields in a WORepetition.  I want to eventually have them display in rows of six across.  I'm sure I can work out a way to do this with a counter, spitting out the closing and opening tr tag every six items.  Is there a more sophisticated way to do this?

thanks,

janine

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Retrieving and displaying images
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: How to debug fetch problem
  • Next by Date: Re: Retrieving and displaying images
  • Previous by thread: Re: How to debug fetch problem
  • Next by thread: Re: Retrieving and displaying images
  • Index(es):
    • Date
    • Thread