Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- Firebase
- FLUTTER
- Git
- UIButton
- Notification
- 웹뷰
- MacOS
- iOS16
- IOS
- Archive
- mac
- Realm
- SwiftUI
- geofencing
- Xcode
- 이미지
- Apple
- 개발자
- view
- appstore
- 한글
- github
- JPA
- Code
- error
- rxswift
- window
- Session
- Swift
- darkmode
Archives
- Today
- Total
목록업로드 (1)
EEYatHo 앱 깎는 이야기
Swift ) Request image/png 보내기 - EEYatHo iOS
1. Content-Type image/png로 그냥 보내기 // 리퀘 생성 var request = URLRequest(url: URL(string: requestUrl)!, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 7) request.httpMethod = "POST" // 리퀘 헤드 request.setValue("image/png", forHTTPHeaderField: "Content-Type") // 리퀘 바디 request.httpBody = image.pngData()! 2. multipart/form-data 이용하기 ( 바디에 다른 Content-Type들 담기 가능 ) // 리퀘 생성 var request = URLRequest(..
iOS, Swift
2021. 12. 10. 14:07