String base64URL = Base64.encode (openURL.getBytes());
String hostURL = "http://c"+openURL.substring(openURL.indexOf("@")+1, openURL.indexOf(":"));
String filename = openURL.substring(openURL.lastIndexOf("/")+1, openURL.length());
StringBuffer fullURLsb = new StringBuffer();
fullURLsb.append(hostURL);
fullURLsb.append("/aaa/aa.jsp");
fullURLsb.append("?fhandle="+base64URL.trim());
fullURLsb.append("&filename="+filename);
String hostURL = "http://c"+openURL.substring(openURL.indexOf("@")+1, openURL.indexOf(":"));
String filename = openURL.substring(openURL.lastIndexOf("/")+1, openURL.length());
StringBuffer fullURLsb = new StringBuffer();
fullURLsb.append(hostURL);
fullURLsb.append("/aaa/aa.jsp");
fullURLsb.append("?fhandle="+base64URL.trim());
fullURLsb.append("&filename="+filename);
base64URL.trim() 이게 제일 중요하다.
해당 trim() 작업을 수행하지 않으면 url이 개행처리 되기때문에
windows 서비는 상관없겠지만 linux에서는 400Error를 토해내게 되다.