Re: Problem using WOimage
Re: Problem using WOimage
- Subject: Re: Problem using WOimage
- From: Jonathan Rochkind <email@hidden>
- Date: Tue, 27 Jan 2004 11:36:56 -0600
Check the logs of your app, but I suspect you are running out of
memory. WOImage with a 'data' binding is a huge memory hog---and
depending on whether you bind the 'key' binding, either it's a memory
_leak_ too, or the URL generated will only work _once_ (and may still
be a memory leak if the URL is never accessed).
Personally, I reccomend absolutely avoiding WOImage with the 'data'
binding. One alternative is this component:
http://WOCode.com/cgi-bin/WebObjects/WOCode.woa/2/wa/ShareCodeItem?itemId=309
Better yet, would be something similar to the code there, but using
the new WO 5.2 streaming APIs to stream the image back to the
browser, if at all possible. Depending where you are getting the
image data from, if you can avoid having the entire image in your
application memory at once ever, that would be much preferable.
--Jonathan
At 2:33 PM +0530 1/27/04, Kranthi Sagar Borra wrote:
> Hi,
I have a problem viewing images.I have mapped NSData to data of
WOImage and set the mimetype to "image/gif".I have defined NSdata
object as
NSData=ImageBLOBData = new NSData(byte[]);
This works fine if my byte array is small in size.But if its
large, then I cannot view any picture.Its neither throwing me an
error or exception.Can somebody tell me where I am going
wrong.Thanks in advance.
Regards,
kranthi
_______________________________________________
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.
_______________________________________________
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.