• 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
Re: java.lang.OutOfMemoryError during downloads
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: java.lang.OutOfMemoryError during downloads


  • Subject: Re: java.lang.OutOfMemoryError during downloads
  • From: John Andersson <email@hidden>
  • Date: Tue, 2 Dec 2003 10:55:18 +0100

Hi Cornelius,

I think you are right, the NSData is actually creating a problem.i did not have this problem during upload because I am using WOFileUpload component which is streaming the data directly from the client to the server.But I think there is no such component for file download.can somebody tell me if there any way by which I can stream the data from server to the client.And cornelius I could not find any resourcestreaming framework at www.cluster9.com .Can you please tell me where exactly I can get this

Regards,
Kranthi Sagar

Hi!

I did this by removing the object column from the EO model, and stream the data manually with regular JDBC routines (PreparedStatement for upload etc).
When uploading, I set the new EO Record, then insert it into the editing context and saving it. After that I stream the data directly to the database, using the _rowid in the EO Record.
A little bit ugly, but it seems to work nice.
Let me know if you want code for the Download page and upload methods. You have to clean it yourself though.. :-)


Brg
/John
_______________________________________________
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.

References: 
 >RE: java.lang.OutOfMemoryError during downloads (From: "Kranthi Sagar Borra" <email@hidden>)

  • Prev by Date: Getting programmatic access to EOTABLE (JTable) in NonDirect2JC...
  • Next by Date: Re: convert string to object? [OT]
  • Previous by thread: RE: java.lang.OutOfMemoryError during downloads
  • Next by thread: Getting programmatic access to EOTABLE (JTable) in NonDirect2JC...
  • Index(es):
    • Date
    • Thread