Questions tagged [nsdocumentdirectory-ios8]

7 questions
43
votes
5 answers

Get image from documents directory swift

Say I were using this code to save an image to the documents directroy let nsDocumentDirectory = NSSearchPathDirectory.DocumentDirectory let nsUserDomainMask = NSSearchPathDomainMask.UserDomainMask if let paths =…
Learnin
  • 1,221
  • 4
  • 15
  • 19
2
votes
0 answers

What is the safest directory in iOS which can be used to download images/pdfs?

I have used NSCachesDirectory in my iPad App to store images and PDFs. Now, my client's complaint is that he is not able to see downloaded content after few hours of downloading. iPad has iOS 11.2.1. In begging, my thought was that, there may be a…
0
votes
1 answer

Data Saved in document Directory Dissappearing

My app stored downloaded audios and videos in document directory.Some users of app facing the problem that the content downloaded on their device getting disappeared with out any specific reason i.e app update. To save a file my path is as…
0
votes
2 answers

I am unable to save and retrieve image in iOS

I am unable to save and retrieve image in iOS. I am getting nil image trough this code: -(NSString *)saveImageDataWithImage:(UIImage *)image { NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentationDirectory,NSUserDomainMask,…
0
votes
1 answer

Convert Ios Photo Album path url same like as Document directory File-path

As per my requirement, want to access iOS device photos app file url (not file as data) for my GCDWebUploader. I want assets library url for my web server. NSString* documentsPath =[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,…
Jashu
  • 1,061
  • 13
  • 19
0
votes
2 answers

Unzip folder and get Images from unzip file

I have successfully downloaded zip file and unzip it with the help of ZipArchive. But now I have to access images from sub-folder of unzip file. The unzip folder is saved in document directory. Sub folder name always changed. I have used following…
Sudha
  • 9
  • 9
0
votes
2 answers

iOS8 Document directory path

Issue in iOS8 document directory path detection: Am using following code to store downloaded attachments from my app into documents directory path. //-- Store data to documents folder NSString *resourceDocPath = [[NSString alloc] initWithString:[…
Rajesh Loganathan
  • 11,129
  • 4
  • 78
  • 90