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
- Code
- darkmode
- error
- Swift
- Apple
- mac
- github
- FLUTTER
- 개발자
- Firebase
- rxswift
- Archive
- Session
- JPA
- IOS
- UIButton
- Python
- Realm
- 웹뷰
- stack
- Git
- iOS16
- view
- window
- Xcode
- MacOS
- Notification
- 한글
- SwiftUI
- appstore
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