2012-03-21

在Eclipse上debug Red5

Step 1, 去RED5官網 SVN check out source code

Step 2, 利用ant Build Project

Step 3, 設定debug 的working directory 位在Red5\dist\

Step 4, Classpath 將User Entries中的預設red5專案移除 改加入Red5\dist\boot.jar

Step 5, Source 加入 red5專案

2012-03-13

2012-03-09

2012-03-01

java.net.URISyntaxException: Illegal character

最近有個需求
需要將字串轉成JSON
再轉成urlencode
再轉base64
再當成參數去call httpget method
轉好base64之後 我發現在new HttpGet時 就會出exception
ex. java.net.URISyntaxException: Illegal character
應該是字串裡有不合法的字元
後來我用URL跳過去

URL url = new URL(urlstr);
URI uri = new URI(url.getProtocol(), url.getHost(), url.getPath(), url.getQuery(), null);
HttpGet httpget = new HttpGet(uri);