Skip to Content
WebObjects® Developer's Guide
book

WebObjects® Developer's Guide

by Ravi Mendis
June 2002
Intermediate to advanced content levelIntermediate to advanced
400 pages
7h 48m
English
Sams
Content preview from WebObjects® Developer's Guide

Uploading and Downloading Attachments

In this revision of the online forum we'll extend the object model to accommodate post attachments and add a facility to upload and download attachments.

Modeling Attachment

To avoid complexity and for performance, we are not going to model Attachment as a separate entity. Instead, we are going to model attachments as two attributes on Post.

We do this is in spite of the fact that modeling Attachments separately may be kosher or traditional.

NOTE

Adding a data blob attribute such as an attachment to an entity would have typically affected the performance of an application. Attachments can take up a fair amount of space on a database. Therefore, fetching posts with attachments can be slow. The way around this ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Real World XML

Real World XML

Steven Holzner
What Successful Project Managers Do

What Successful Project Managers Do

W. Scott Cameron, Jeffrey S. Russell, Edward J. Hoffman, Alexander Laufer

Publisher Resources

ISBN: 0672323265Purchase book