I have Tried initWithContentsOfURL. But I am getting exception.
NSData *imageData = [[NSData alloc] initWithContentOfURL:@"
file://localhost/volumes/DATA/image/ 
> play.tiff "];

What Might be problem with That ?
Is there any other problem with my code ?

Thank You.


-----Original Message-----
From: Heinrich Giesen [mailto:[EMAIL PROTECTED] 
Sent: Saturday, July 19, 2008 6:24 PM
To: cocoa-dev@lists.apple.com
Cc: Vijay Kanse
Subject: Re: setting image for person in address book


On 19.07.2008, at 13:35, Vijay Kanse wrote:

> NSData *imageData = [[NSData alloc]
> initWithContentsOfFile:@"file://localhost/volumes/DATA/image/ 
> play.tiff"]
> ;


> I am tracing program and I am not getting any value in imageData.
>


In your program the parameter of -initWithContentsOfFile: is not a  
file, it's an URL.
Try to read instead with -initWithContentsOfURL:


-- 
Heinrich Giesen
[EMAIL PROTECTED]


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please 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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to