Add to make File by Real Path through Uri#108
Open
aahspringaa4 wants to merge 3 commits into
Open
Conversation
ParkSangGwon
requested changes
May 21, 2022
ParkSangGwon
left a comment
Owner
There was a problem hiding this comment.
정확히 어느경우에 Real path를 가지는 File이 필요한지 잘 모르겠습니다.
Uri만으로 충분하고 remote에 이미지를 보낼때 Stream이나 ByteArray만으로 전달하면 충분한것 같습니다.
그리고 만약에 필요하다고 하더라고
Uri로부터 Real path를 갖는 File을 만드는 작업은 ImagePicker 라이브러리의 역할이 아닌것 같습니다.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TedImagePicker에서 반환되는 사진의 Uri를 통해서 Real Path를 가져옵니다. 그 다음 Real Path를 사용해서 파일을 만드는 코드이다.
서버와의 통신을 예로 들면 서버에 사진값을 보낼때 대부분 파일 형태로 주는 경우가 많다. 하지만 숙련도가 부족한 이들은 이에 어려움을 느낄 것이다.
이 pr은 그들을 위해 사진을 파일 형태로 수령 할 수 있는 코드를 구현한 것이다.