I have written an cocoa application to take a picture on the iPhone. I need to transfer the images taken to somewhere besides the iPhone namely another server. Does anyone know how I can accomplish this?
Thanks, Joe
You can insert an image into a document using the InsertInlineImageRequest method. You can optionally specify a size to resize the image. The image must be publicly accessible using the URL that you provide in this method. ));
Open the Photos app on your computer. The Photos app shows an Import screen with all the photos and videos that are on your connected device. If the Import screen doesn't automatically appear, click the device's name in the Photos sidebar. If asked, unlock your iOS or iPadOS device using your passcode.
First get a server and figure out what kind of phone <---> server API you want to use. There are any number of ways it can work. A simple and common scheme is a REST API with photos being uploaded via HTTP POST.
The basic scheme would be something like:
Converting to base64 should not be necessary.
If you've never put together any kind of server API, there are any number of examples available. Most photo-sharing sites have public APIs which may be useful references.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With