Access iPhone picture files without iTunes and iCloud - ios

I take pictures every day with my iPhone S5 (iOS 14) and would like to store them in a day-wise directory on my Windows 10 PC.
To transfer the picture files from iPhone to PC, I use an USB cable connection, allow USB access on the iPhone and then copy the picture files using Windows Explorer.
The Explorer shows something like the following:
To automate the process, I tried to get the directory path, a home-grown utility tool could use to copy the picture files directly without my intervention.
I used the following C# routine to get to know the current path of Windows Explorer:
private void ShowWindows()
{
textBox1.Clear();
foreach (IWebBrowser2 window in new ShellWindows())
{
textBox1.AppendText($"{window.LocationURL}\r\n");
}
}
This works for normal paths on my SSD. But the iPhone paths appear to be different. I don't get any information about them. In Windows Explorer, there is no property dialog for these iPhone directories. I looked through the Windows CLSID list, but this did not help either.
How can I programatically copy iPhone picture files like normal USB flash drive files?
Or is it unavoidable to resort to special tools like iTunes?

The thing is that phones do not get mounted to the filesytem and do not get thier drive letter. Explorer communicates with them using WIA protocol. So you will need to write separate code to deal with images from iPhone.
You can find documentaton is here https://learn.microsoft.com/en-us/windows/win32/wia/-wia-wia-tutorial

Related

Any ideas on how to batch delete iPhone albums from photo library?

Problem: I have a friend's iPhone that I am working with who had some 3rd party Canon app that created an overwhelming amount of "Albums" (5848499495 of them to be exact!!).
Refer to this video
Obviously, this definitely shouldn't happen and we're trying to see what's the best way to delete all of them.
I was thinking of accessing the files via SSH on the iPhone to see if these "Albums" are represented as directories somewhere in the iPhone's file structure and run some type of shell script to batch remove files as we would on our Macs but I realize that this will require some jailbreaking which we're trying to avoid doing if possible. But will consider it if it's easier to do it that way.
I also tried to see if there were Command Line tools for the iPhone to directly access the root folder to see if we could find the directory but I realize that there are permission issues associated with accessing the iPhone's files without jailbreaking.
These albums are stored locally on the phone, and it's not in iCloud. We tried to see if these folders show up on Mac's photo app after syncing but because they are empty folders, it doesn't show on the app.
Note: we're on a Mac, and the model is an iPhone X running the latest iOS 14.
I'm all out of ideas and any help would be wonderful.
Thanks!

Debugging & accessing NSDocumentsDirectory in real device

I have my apps using NSDocumentsDirectory for saving the downloads & offline data on device. From debugging point of view, I was debugging as usual on simulator & was trying to access the path for these downloads & I was able to do that. I have my doubts as :
I am not able to access the location /var/mobile/Applications/SOME-HEX-CODED-PATH/Documents/ via terminal that was shown in the NSDocumentsDirectory paths during debugging on device. Whereas in iOS Simulator I am able to open , read/ write at that location.
I am not able to browse through the /var/mobile directory as it is not listed in the finder, not even as hidden directory.
Is that directory is mounted on runtime ?
Please clarify.
I am not sure to fully understand your question. You want to access, from your laptop, the filesystem of your device?
You are not supposed to do that on a regular device at least. If you want to browse your documents directory do it through the organiser (Window/Organiser) and then "devices" tab and select your device and your app. You will be able to see your sandboxed filesystem in the bottom part and downloaded its content.

Blackberry cfg file not found when device connects to computer and Desktop Manager open

I am storing all the config details to a test.cfg file in my BlackBerry device. So every time when i start the application, the app will check if test.cfg exists. If it exists, then it loads all the configuration from that file and if not, the app will show the config page, then the user can enter all the config details and proceed further.
The above is working fine except one scenario. When the device is plugged in to the system and I open the Desktop Manager and the user opens the application, its directly shows the configuration page even if test.cfg already exists in the device.
Does anybody know the solution for this? or any idea why its behaving like this?
My guess would be that when you connect your device to the computer via USB cable, your computer is mounting the SDCard as an external drive. When it does this, the device will essentially lose access to its SDCard. It needs to do this, because the device software and the desktop computer's software don't want to simultaneously be modifying the same files.
Are you saving test.cfg on the SDCard?
If so, you might want to save the file to the device's internal storage instead, for example, in the PersistentStore.
You could turn off the mass storage feature that makes your SDCard available to the PC, if you prefer to have the media card always available to the app. (if you want to do this, tell me which OS version you're using ... but, understand that this only works for you, and isn't a good solution if you want your users to avoid this problem).
You can also test for the SDCard in your app, programmatically
References
Reference on BlackBerry support forums
Data Storage Development Guide on BlackBerry.com
Go to option -> Device -> Storage and deselect and select the media card support and save it and come out the option.Now try to access the media -> explorer folder u can able to access it and also my apps can read the file when its connecting to USB drive now.

How can I export an iPad app's data to a computer?

I have a simple survey iPad app. The data is saved in a TSV (tab separated file). I'm looking for an easy way to export this TSV file to a computer (without emailing it, if possible, and without doing it through iTunes).
App data on iOS is not directly accessible from a connected computer. It's not like you can mount the iPad's flash drive directly on a computer, navigate to the app's data directory, and copy the file to the computer. You have to have something with rights to access the data.
Some options are:
email or otherwise 'share' the data from within the iPad app.
Make the app's data accessible via iTunes
Turn the app into an FTP client or server
Dropbox integration (There was some problem where Apple was rejecting apps that did this, but i don't know the current state)
Have a look at IExplorer. It's a great little program / app that let's you access your iPad's file system from your computer. You can just drag and drop any file from your iPad to your computer.

How to copy html files to ipad and then launch in a browser

Here's a crazy question...The client wants a web application to be available on the ipad when not connected to the internet. My first thought was that it would be a great opportunity to use the offline app feature of HTML5, except that the entire web app (including all the media) is 3GB, and apparently all of it must be available. This exceeds the 5MB limit of the app cache. The website does not necessarily have to rely on any dynamic server side code. It can be straight HTML files. Does anyone know if it would be possible to manually copy the entire website onto the ipad and from there easily launch it in a browser? I was not able to do this, but I have to believe there's a way. Any other approaches to this problem that you can think of? Thank you.
I had a similar problem and here's what I found that worked (using an iPad and a PC):
Download (on the PC) the program HTTrack to the PC. This program can create an offline mirror of a website and has all sorts of options for what gets included.
Run HTTrack on the PC and create a folder for your website.
Install (on the iPad) the free App "Documents 5" by Readdle.
Connect Documents 5 to some sort of cloud based storage (I used by Google drive account, but I'm sure Drop Box would work also)
Zip the entire offline website folder mirrored using HTTrack and upload the zip file to cloud storage (Google drive)
Click on the zip file in Documents 5. It should be downloaded to the iPad
Click on the downloaded zip file in Documents 5. It should be automatically extracted.
Now open the extracted folder and click on index.html. This is your website offline.
I don't know if there is a way to move the index link to the home screen...
There are several apps that can be used for storing files on the iPad and viewing them in an embedded browser. I use GoodReader, but this might be overkill for your purpose.
I've been able to view them using FileApp (after transferring via DropBox), but it's far less than ideal.
Use hightail.com, you can link a website as a space, it will actually convert the website to preview image, then can be access on iPad as webpage in browser, no need to copy file to iPad or install any software.

Resources