Re: Problem with dataWithContentsOfURL of NSData
Re: Problem with dataWithContentsOfURL of NSData
- Subject: Re: Problem with dataWithContentsOfURL of NSData
- From: praveen kumar <email@hidden>
- Date: Thu, 16 Aug 2007 15:48:32 +0530
Hi,
Machine Name: Mac mini
Machine Model: PowerMac10,1
CPU Type: PowerPC G4 (1.2)
Machine Name: iMac
Machine Model: PowerMac4,2
CPU Type: PowerPC G4 (2.1)
The dataWithContentsOfURL in the following code returns NULL object
in the above stated systems with error as " NSError "File could not
be opened." Domain=NSCocoaErrorDomain Code=256 UserInfo={NSURL =
http://1.1.1.1/~s/l1.pdf; } ". Here the url points to the Personal
Web Sharing of remote system.
NSError *error = NULL;
NSData *pdfData = [NSData dataWithContentsOfURL: urlString options:
NSUncachedRead error: &error];
I tried with online PDF URL "http://www.google.com/url?
sa=t&ct=res&cd=6&url=http://manuals.info.apple.com/en%
2FiPhone_User_Guide.pdf&ei=n_TDRvuzK5maswLcv-
WiDw&usg=AFQjCNFjZLZrNZ_VZ8TMZPYw62Ww51ouaQ&sig2=v6wo_kjUqN4WGDma9aLuew
", it too fails.
initWithContentsOfURL of NSData also fails.
If we directly create PDFDocument object with the URL then it works
fine. It creates the PDF document object successfully.
PDFDocument *pdfDocument = [[PDFDocument alloc]
initWithURL:urlString];
Do any of you know the cause for this ?.
Please give me suggestions on this.
Thanks in advance
- M Praveen Kumar.
Hi,
do.....used connection, proxies or certificates differ?
Am 14.08.2007 um 17:35 schrieb praveen kumar:
Hi,
The dataWithContentsOfURL method of NSData returning null on
Mini Mac and on iMac PowerPC G4 system when the URL is not local,
while it is working fine with local file url and also working fine
on G5 and Intel systems.
Please let me know if i miss anything.
Thanks in advance
- M Praveen Kumar.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden