1

I'm working on a iOS application that access data from SQL Server through an XML service running on the server. Within this database, there's a textile BLOB field that I need to get and save in a temporary folder. I have searched high and low for a solution on the internet without any luck. I'm new to Objective-C programing and don't have all the tools as of yet. Any help on this would be greatly appreciated.

Thanks, Hamid

4

1 回答 1

0

好的...我找到了答案。

NSString *myString = [[NSString alloc]initWithData:myData encoding:NSASCIIStringEncoding];
[myString writeToFile:filePath atomically:NO encoding:NSUTF8StringEncoding error:&error];

myData 是用 Blob 填充的 NSData 文件路径是沙盒保存位置。

于 2012-11-28T21:10:42.423 回答