Re: java.lang.OutOfMemoryError during downloads
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.