프로그래밍/안드로이드

안드로이드 자바/코틀린 예제

do121 2022. 12. 3. 22:33

1. webview에 jpg파일 읽어오기
     webview.loadUrl("file:///android_asset/mypicture.jpg");

2. imageview에 특정 경로의 이미지 불러오기(코틀린)
https://www.geeksforgeeks.org/showing-image-view-from-file-path-in-android/

Showing Image View From File Path in Android - GeeksforGeeks

A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.

www.geeksforgeeks.org


3. 소켓 통신을 통한 서버 클라이언트간 jpg 파일 전송
https://stackoverflow.com/questions/25086868/how-to-send-images-through-sockets-in-java

How to send images through sockets in java?

I am writing a client-server program and I want that to send an image. The code is the following: //RECEIVER while(true){ try{ socket = server.accept(); out = new

stackoverflow.com