Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

jsp base64±àÂëÓ¦ÓÃÎÊÌâ

×î½üÓÐÒ»¸ö´ó×÷ÒµÏë¸ãÒ»¸öͼƬ¸ñʽת»»µÄwebapp£¬ÆäÖÐÓõ½ÁËbase64±àÂ룬ÓÃϱߵĴúÂëÈç¹ûÊÇ´¿JAVAûÓÐÎÊÌ⣬µ«Ð´ÔÚJSPÀï¡°return encoder.encode(data); ¡±Õâ¾ä¾Í×ܱ¨´í¡°org.apache.jasper.JasperException¡±£¬ÍøÉϲé˵ÊÇJSTLµÄÎÊÌ⣬°´http://www.cnblogs.com/yan5lang/archive/2009/07/15/1524161.htmlËù¸øµÄ½â¾ö·½°¸ÓÃÁËûÓнâ¾ö£¬ÒòΪ³õÓÃJSP£¬ËùÒÔÁ˽ⲻÊǺÜÉ²»ÖªµÀÊÇÎÒ½â¾öµÄ²»¶Ô»¹ÊÇÎÊÌâ³öÔÚÆäËüµØ·½£¬Ï£ÍûÁ˽âµÄ´óϺÃǸøÓèÖ¸µã£¬Ð»Ð»ÁË¡£
PS£ºÓÖÓзÖÁË£¬Öظ´·¢ÏÂÌù£¬²»ºÃÒâ˼ÁË¡£¡£
<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<%@ page import="java.io.*" %>
<%@ page import="java.util.*" %>
<%@ page import="sun.misc.BASE64Decoder" %>
<%@ page import="sun.misc.BASE64Encoder" %>
<%! 
    String GetImageStr()
    {  //½«Í¼Æ¬Îļþת»¯Îª×Ö½ÚÊý×é×Ö·û´®£¬²¢¶ÔÆä½øÐÐBase64±àÂë´¦Àí
        String imgFile = "1.jpg" ; //´ý´¦ÀíµÄͼƬ
        InputStream in = null;
        byte[] data = null;
        //¶ÁȡͼƬ×Ö½ÚÊý×é
        try
        {
            in = new FileInputStream(imgFile);       
       


Ïà¹ØÎÊ´ð£º

JSPÈÕÆÚ

ÔÚASPϵıäÁ¿£¬Èç¡°2009-09-09¡°£¬×÷Ϊ²ÎÊý£¬´«ÈëJSPº¯ÊýÄÚ£¬±äΪÂÒÂ룬ÇëÎÊÈçºÎ½â¾ö

asp´«µ½jsp?ûÅö¹ý...up up

¸ñʽ»¯°¡£¡

ASPÖÐÈÕÆÚÊDz»ÊÇÒÔ×Ö·û´®µÄÐÎʽ´«ÈëJSPº¯ÊýÖеģ¿
Èç¹û²»ÊÇ×Ö·û´®µÄ»°£ ......

¹ØÓÚjspÂÛ̳ - Java / Web ¿ª·¢

ÎÒÏÖÔÚÏëÓÃsshÕûºÏÀ´×öÒ»¸öÂÛ̳£¬µ«Êý¾Ý¿â·½Ãæ²»ÐУ¬ÎÒÖ÷Òª²»»áÉæ¼°Êý¾Ý¿â£¬²»ÖªµÀ·¢Ìû±í£¬ºÍ»ØÌû±íÒªÈçºÎÉè¼ÆºÍÇø·Ö¡£²»ÖªµÀË­ÓÐÒ»¸ö¼òµ¥µÄ˼·£¬À´Éè¼ÆÕâЩ±í¡£Ð»Ð»ÁË¡£
·¢ÌûºÍ»ØÌûÓÃͬһÕÅ±í ¡£·¢Ìû id user ......

JSPÀûÓó¬Á¬½ÓÌí¼ÓºÃÓÑ

ÎÒ×öÒ»¸öС¶«Î÷ 

Óû§µã»÷    <a>Ìí¼ÓºÃÓÑ </a>

È»ºó¾Í¿ÉÒÔÌí¼ÓºÃÓÑ

Êý¾Ý¿â²Ù×÷,Êý¾Ý´«ËÍÕâЩ¶«Î÷¶¼ÁË½â  ¾ÍÏëÖªµÀÕâ¸öµ¥´¿µÄµã»÷,ÏìÓ¦¶¯×÷Ó¦¸ÃÈçºÎʵÏÖ? ......

JSPÒ³Ãæ±íµ¥Ìá½»ÎÊÌ⣿

<script language="javaScript">
function select()
{
document.selectpages.selectnum.value=document.selectpages.selectpage.value;
document.selectpages.submit();
}
&l ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ