Click here to Skip to main content
15,899,475 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi everybody,
I created a pdf in dot net and it is converted to byte array.It is placed in an entity and serialized(json serialization).The response is in the form of string and send through a http service to iphone.

In iPhone i used
C#
NSXMLParser * parser = [[NSXMLParser alloc]initWithData:webData];
[parser setDelegate:self];
[parser parse];

and xml parser method hold the response as string
C++
-(void)parser:(NSXMLParser *)parser foundCharacters:(NSString *)string
{ }

the above function parameter string hold the response value.
{"PDF":[37,80,68,70,45,49,46,55,32,10,37,226,227,207,211,32,10,49,32,48,32,111,98,106,32,10,60,60,32,10,47,84,121,112,101,32,47,67,97,116,97,108,111,103,32,10,47,80,97,103,101,115,32,50,32,48,32,82,32,10,47,80,97,103,101,77,111,100,101,32,47,85,115,101,78,111,110,101,32,10,47,86,105,101,119,101,114,80,114,101,102,101,114,101,110,99,101,115,32,60,60,32,10,47,70,105,116,87,105,110,100,111,119,32,116,114,117,101,32,10,47,80,97,103,101,76,97,121,111,117,116,32,47,83,….]}

How can u recreate the pdf?
Posted
Updated 19-Sep-12 20:36pm
v2

1 solution

if you want to send data to iphone why are you converting it to pdf?
and if you want to send a pdf dont use json, as json is used to send objects or data not bytes or streams of data.
Use different technique to download the pdf to iphone, like give an absolute path to iphone about your files destination, and search for file downloading in iphone.
Your question is confusing
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900