0
내 webapp에 사진 업로드를 구현하려하고 있습니다. 메신저 문제는 Imagescalr을 사용하여 원본 사진의 엄지 손가락을 만드는 것이고 Im은 AWS 플러그인을 사용하여 이미지를 내 버킷에 업로드하는 것입니다. 그래서, 내가했습니다 코드는 다음과 같다 : 그래서 (질문/추적 할 수없는 가망 대답에 영향을 해달라고 삭제 검증 및 일)ImageScalr + Grails + AWS 플러그인
def uploadPic() {
def f = request.getFile('file')
.
.
.
def s3file = f.inputStream.s3upload(filename) { //this is for the normal photo
path "POI/ID/"
}
def imageIn = ImageIO.read(???); //Dont know if I can put the f file here as parameter... do I have to store it somewhere first, call the s3 file, or I can resize on - the - fly?
BufferedImage scaledImage = Scalr.resize(imageIn, 150);
//Here I should upload the thumb. How can I call something like what is done for the normal photo?
문제/질문 코드를 따라 설명, 사람이하는 방법을 알고 희망 이. 미리 감사드립니다.