Re: sending image through network
Re: sending image through network
- Subject: Re: sending image through network
- From: Guy English <email@hidden>
- Date: Fri, 23 Mar 2007 19:54:29 -0400
NSImage doesn't always archive the bitmap data - if you go back and
read through the NSImage documentation you'll see that there are
times when it'll just archive a reference to the image source. Like a
URL or filename.
Rather than archiving the NSImage archive [image TIFFRepresentation]
and send that over the wire. On the other end recreate the image with
image = [[NSImage alloc] initWithData: unarchivedTIFFData];
That's my guess without seeing code anyway.
-Guy
On 22-Mar-07, at 6:22 AM, sheen mac wrote:
Hi All,
I am doing a text chat application in which I send the image
and text with the help NSArchiver to other meachine.Its working
in one way.In one side,I got image and text.But the other side,
I got the picture.I got this error "Could not create
CGImageDestinationRef for output type 'public.tiff'.
How to solve this.
Kindly help me.
Thanks In Advance,
Sheen
---------------------------------
TV dinner still cooling?
Check out "Tonight's Picks" on Yahoo! TV.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
40gmail.com
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden