POST SQLITE file to remote server
问题 I'm really got tired, searching here and in google but bad result. Am asking about if I want to upload SQLITE file in documents/local to my server how could I do that from iOS to do some of backup database Your answer will be highly appreciated. 回答1: Use multipart/form-data for header Content-Type , and Content-Type: application/octet-stream for a file in HTTP body. OK, I will show u a demo, just create an new Xcode project with template 'Empty Application', check 'Use ARC', then paste :