// Path: src/com/lling/qiqu/utils/UrlBase64Coder.java
// public class UrlBase64Coder {
// 
// 	public final static String ENCODING = "UTF-8";  
// 	  
//     // 加密  
//     public static String encoded(String data) throws UnsupportedEncodingException {  
//         byte[] b = Base64.encodeBase64URLSafe(data.getBytes(ENCODING));  
//         return new String(b, ENCODING);  
//     }  
//   
//   
//     // 解密  
//     public static String decode(String data) throws UnsupportedEncodingException {  
//         byte[] b = Base64.decodeBase64(data.getBytes(ENCODING));  
//         return new String(b, ENCODING);  
//     }  
// }


import java.awt.image.BufferedImage;
import java.io.IOException;
import java.io.InputStream;
import java.io.UnsupportedEncodingException;
import java.net.MalformedURLException;
import java.net.URL;
import javax.imageio.ImageIO;
import com.lling.qiqu.utils.UrlBase64Coder;
package com.lling.qiqu.test;




public class Test {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
//		String s = HttpConnHelper.doHttpGetRequest("http://7xixxm.com2.z0.glb.clouddn.com/ed8fc103-7fbd-40cc-8f38-b0f8393645e0.jpg?imageInfo");
		String s;
		try {
// Path: src/com/lling/qiqu/utils/UrlBase64Coder.java
// public class UrlBase64Coder {
// 
// 	public final static String ENCODING = "UTF-8";  
// 	  
//     // 加密  
//     public static String encoded(String data) throws UnsupportedEncodingException {  
//         byte[] b = Base64.encodeBase64URLSafe(data.getBytes(ENCODING));  
//         return new String(b, ENCODING);  
//     }  
//   
//   
//     // 解密  
//     public static String decode(String data) throws UnsupportedEncodingException {  
//         byte[] b = Base64.decodeBase64(data.getBytes(ENCODING));  
//         return new String(b, ENCODING);  
//     }  
// }


// Path: src/com/lling/qiqu/test/Test.java
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.io.InputStream;
import java.io.UnsupportedEncodingException;
import java.net.MalformedURLException;
import java.net.URL;
import javax.imageio.ImageIO;
import com.lling.qiqu.utils.UrlBase64Coder;

package com.lling.qiqu.test;




public class Test {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
//		String s = HttpConnHelper.doHttpGetRequest("http://7xixxm.com2.z0.glb.clouddn.com/ed8fc103-7fbd-40cc-8f38-b0f8393645e0.jpg?imageInfo");
		String s;
		try {
			s = UrlBase64Coder.encoded("http://7xnqm4.com1.z0.glb.clouddn.com/watermark.png");