본문 바로가기 메뉴 바로가기

Peppo

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

Peppo

검색하기 폼
  • 분류 전체보기 (221)
    • Story (13)
    • iOS (143)
      • Error (11)
    • 알고리즘 (43)
    • ETC (7)
    • React-Native (0)
    • CS (Computer science) (3)
  • 방명록

urlsession 이미지 업로드 (1)
[iOS] URLSession image upload

평소 네트워크 통신을 할때 Alamofire를 사용하면서직접 URLSession을 사용해 이미지 업로드를 구현해보며 내부 동작을 파악하고 싶어 해당 블로깅을 작성해봅니다.  기본적으로 URLSession의 request 헤더 부분에 'Content-Type: application/json'을 사용하게 되는데,이미지나 대용량 파일 등을 전송하기 위해선 multipart/form-data로 전송하는게 적합 합니다. multipart/form-data먼저 application/json | multipart/form-data 각각 request body를 보내는 방법 부터가 다른데 아래를 먼저 보고 가봅시다.// application/jsonlet body: [String: Any] = [ "name": ..

iOS 2024. 11. 24. 22:42
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
  • Peppo's Github
TAG
  • Combine: Asynchronous Programming with Swift
  • Swift ModernRIBs
  • Swift joined()
  • Swift
  • 2023년 회고
  • Class
  • swift protocol
  • Swift inout
  • swift programmers
  • removeLast()
  • CS 네트워크
  • Swift Leetcode
  • Swift 알고리즘
  • swift property
  • Swift Error Handling
  • Swift 내림차순
  • Swift joined
  • Swift 프로그래머스
  • swift reduce
  • ios
  • RTCCameraVideoCapturer
  • 원티드 프리온보딩
  • Swift 프로퍼티
  • Swift RIBs
  • iOS error
  • RIBs tutorial
  • swift (programmers)
  • swift 고차함수
  • Swift init
  • Swift final
more
«   2025/05   »
일 월 화 수 목 금 토
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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바