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

ʹÓÃJavaµÈ±ÈÀýËõ·ÅͼÏñ£¡

 Ëõ·ÅͼÏñµÄ»ù±¾Ô­ÀíÊÇ´´½¨Ò»¸öÄ¿±ê´óСµÄ»­²¼£¬È»ºó¶ÁȡԴͼÏñ£¬²¢½«¸ÃͼÏñ»æÖÆÕâ¸ö»­²¼ÉÏ¡£ÎªÁËʹ³ÌÐòͨÓã¬Ô´Í¼ÏñºÍËõ·ÅºóµÄÄ¿±êͼÏñÓ¦Ó÷ֱðʹÓà InputStreamºÍOutputStreamÀ´±íʾ£¬´úÂëÈçÏ£º
     public   static   void  scaleImage(InputStream imgInputStream,
            OutputStream imgOutputStream,  int  scale)
    {
         try
        {
            Image src  =  javax.imageio.ImageIO.read(imgInputStream);
             int  width  =  ( int ) (src.getWidth( null )  *  scale  /   100.0 );
             int  height  =  ( int ) (src.getHeight( null )  *  scale  /   100.0 );
            BufferedImage bufferedImage  =   new  BufferedImage(width, height,
                    BufferedImage.TYPE_INT_RGB);
             bufferedImage.getGraphics().drawImage(
                    src.getScaledInstance(width, height, Image.SCALE_SMOOTH),
                     0 ,  0 ,  null );
            JPEGImageEncoder encoder  =  JPEGCodec
               &nbs


Ïà¹ØÎĵµ£º

²ËÄñ¶ÔjavaµÄһЩÀ§»ó

ѧjavaÒѾ­ÓÐÒ»¶Îʱ¼äÁË¡£Ñ§µÄ¶«Î÷²»¶à£¬µ«ÎÒûÏëµ½½ö½öÃæÏò¹ý³ÌµÄһЩ֪ʶ£¨Loops£©¾Í¿ÉÒÔ×ö³öÏñÎå×ÓÆåÕâÑùµÄÓÎÏ·£¬ÎÒ²»µÃ²»¸Ð̾javaÓïÑÔµÄ÷ÈÁ¦¡£ÌرðÊÇÁ˽⵽javaµÄÓ¦ÓÃÖ®¹â·º£¬Éæ¼°ÊÖ»ú£¬Ç¶Èëʽ¿ª·¢£¬pc£¬ÆóÒµ¼°·þÎñÆ÷µÈÖ®ºó£¬ÎÒ¸ü¼á¶¨ÁËѧϰjavaµÄ¾öÐÄ¡£µ«ÊÇÎÒÒ²µ£ÐÄ×Ô¼ºÑ§²»°¡ºÃ¡£ºÜ¶à¶«Î÷¶¼ÊÇÔÚÀÏʦµÄÀÏÁìµ¼ÏÂÍê³ÉµÄ£ ......

¹ØÓÚJAVA,JSPµÄ1¸öÎÊÌâ

×î½üÔÚѧJAVA£¬Á·Ï°µÄʱºòÓöµ½¸öÎÊÌ⣬Çë´ó¼Ò°ïæ¿´¿´……
Ö÷ÒªÎÊÌâÊÇ£¬ÔÚJSPÖÐûÓа취µ¼ÈëÎÒÏëÓõÄÀ࣬Ã÷Ã÷µ¼ÈëÁ˰ü£¬È´±¨£ºMyDAO cannot be resolved to a type
JSP´úÂ룺
<%@ page contentType="text/html;charset=GBK"%>
<%@ page import="java.util.Date"%>
<%@ page import="java.t ......

JAVA ÖеÄWeb ·þÎñ¹æ·¶£º


JAVA Öй²ÓÐÈýÖÖWebService ¹æ·¶£¬·Ö±ðÊÇJAXM&SAAJ¡¢JAX-WS£¨JAX-RPC£©¡¢JAX-RS¡£
ÏÂÃæÀ´·Ö±ð¼òÒªµÄ½éÉÜÒ»ÏÂÕâÈý¸ö¹æ·¶¡£
(1.)JAX-WS£º
JAX-WS£¨Java API For XML-WebService£©£¬JDK1.6 ×Ô´øµÄ°æ±¾ÎªJAX-WS2.1£¬Æäµ×²ãÖ§
³ÖΪJAXB¡£ÔçÆÚµÄ»ùÓÚSOAP µÄJAVA µÄWeb ·þÎñ¹æ·¶JAX-RPC£¨Java API For
XML-Remote Proce ......

Java 23ÖÖÉè¼ÆÄ£Ê½Ò»µã¾Íͨ

Ò»¡¢´´½¨ÐÍģʽ
¡¡¡¡FACTORY£¿È˲ÅÊг¡£ºÒÔÍùÊÇÒªÄĸöÈ˲ţ¬¾ÍÕÒÄĸöÈ˲ţ¬Ð§Âʵͣ¬ÏÖÔÚÓÐÁËÈ˲ÅÊг¡£¬ÎÒÃÇÖ»ÐèÖ±½ÓÈ¥È˲ÅÊг¡ÌôÒ»¸öºÃÁË£»
¡¡¡¡BUILDER£¿Éú²úÁ÷Ë®ÏߣºÒÔǰÊÇÊÖ¹¤Òµ×÷·»Ê½µÄÈ˹¤µ¥¸öµ¥¸öµÄÉú²úÁã¼þÈ»ºóÒ»²½Ò»²½×é×°×ö£¬ºÃ±ÈÓÐÁ˹¤Òµ¸ïÃü£¬ÏÖÔÚ¶¼ÓÉÉú²úÁ÷Ë®Ïß´úÌæÁË¡£ÈçÒªÔì·áÌïÆû³µ£¬ÏÈÖÆ¶¨Æû³µµÄ¹¹ÔìÈç ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ