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 | 31 |
Tags
- github
- 한글
- Realm
- rxswift
- FLUTTER
- MacOS
- error
- mac
- iOS16
- 개발자
- IOS
- Session
- Xcode
- Archive
- JPA
- stack
- UIButton
- darkmode
- Notification
- SwiftUI
- Firebase
- Swift
- Python
- Code
- Apple
- window
- appstore
- view
- Git
- 웹뷰
Archives
- Today
- Total
목록image/png (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