• 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
Download file..
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Download file..


  • Subject: Download file..
  • From: James Cicenia <email@hidden>
  • Date: Wed, 24 Mar 2004 10:37:48 -0600

Hello -

Well for better or for worse I have decided to save my documents in the
database.
I made two EOs for this.. one to list them and then one to hold the
actual BLOB.
I am using mySQL for this.

I have successfully uploaded the file into the database. I now have a
page that lists
the files. I then created a hyperlink to bind to my download method:

	public NSData downloadableData() {
		NSData downloadable = null;
		try {
			downloadable =
theDocumentItem.projectDocumentObject().documentObject();
		} catch (NullPointerException npe) {
			System.err.println("Error: " + npe);
		}
		return downloadable;
	}


This however always gives me ClassCastException. Any thoughts?

Thanks,
James Cicenia
_______________________________________________
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: Download file..
      • From: steve stout <email@hidden>
  • Prev by Date: Fwd: webobjects-dev -- confirmation of subscription -- request 444683
  • Next by Date: Re: App hangs on 1st access to DB
  • Previous by thread: Fwd: webobjects-dev -- confirmation of subscription -- request 444683
  • Next by thread: Re: Download file..
  • Index(es):
    • Date
    • Thread