C#ÈçºÎ·¢ËÍͼƬÐÅÏ¢¸øJAVA³ÌÐò½ÓÊÕ - .NET¼¼Êõ / C#
ÎҵĿͻ§¶ËÊÇÓÃC#дµÄ£¬C#ÓÃSOCKET·¢ËÍÈçºÎ·¢ËÍͼƬÊý¾Ýµ½Ò»¸öJAVAµÄ³ÌÐòÀ´½ÓÊÕͼƬÐÅÏ¢ÄØ£¬ÎÒµÄC#ÐòÁл¯ºóÓÃJAVA²»ÖªµÀÄܲ»ÄÜ·´ÐòÁл¯£¬²»ÖªµÀÄÄλ´óÏÀÓÐ×ö¹ýÕâ·½ÃæµÄ³ÌÐò£¡ÁíÍâÊǽ«Í¼Æ¬ÐòÁл¯³ÉÒ»¸ö×Ö·û´®´æµ½XMLÀïÃ棬JAVAÊÕµ½ÐÅÏ¢Ö®ºó½âÎöXML»ñµÃÕâ¸öÐòÁл¯Ö®ºóµÄͼƬ×Ö·û´®ÔÙ·´ÐòÁл¯£¬Èç¹ûÁ½¶Ë¶¼ÊÇC#ÎÊÌâ²»´ó£¬µ«ÊDz»ÖªµÀJAVAÔõô×ö£¡
ÁíÍâÎÒÓÃC#ÐòÁл¯µÄ´úÂëÔÚÎÒ²©¿ÍÀïÃæÒ²ÓÐ
C# code:
Bitmap bitMap = new Bitmap(filename);
MemoryStream ms = new MemoryStream();
bitMap.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg);
StringWriter sw = new StringWriter();
XmlTextWriter xw = new XmlTextWriter(sw);
xw.Formatting = Formatting.Indented;
XmlSerializer ser = new XmlSerializer(ms.GetBuffer().GetType());
ser.Serialize(xw, ms.GetBuffer());
string xmlString = sw.GetStringBuilder().ToString();
xw.Close();
sw.Close();
ms.Close();
XmlDocument doc = new XmlDocument();
doc.LoadXml(xmlString);
if (doc != null && doc.ChildNodes.Count > 1 && doc.ChildNodes[1] != null)
{
XmlNode node = doc.ChildNodes[1];
photoString = node.InnerText;
}
²»ÖªµÀphotoString ÓÃJAVAÔõô·´ÐòÁл¯
°ï¶¥~~~~~~~~~~~~~~
Ö±½Ó
Ïà¹ØÎÊ´ð£º
±¾ÈËÕýÔÚÓÃJava×öÒ»¸öC/S¼Ü¹¹µÄÏîÄ¿£¬
¿ÉÊÇÓÉÓÚÏîÄ¿±È½Ï´ó£¬Ç°ÆڶԼܹ¹µÄÉè¼ÆÓÈÆäÖØÒª£¬ÒòΪºóÆÚ¿ÉÄÜËæʱ»á¼Ó¸ö¹¦ÄÜ»òÕßÈ¥µôijЩ¹¦ÄÜ¡£
ËùÒÔÌصØÑ°ÇóÈçºÎÉè¼ÆC/SµÄ¼Ü¹¹Ê¹³ÌÐò¸ü¼ÓÃæÏò¶ÔÏó¸ü¼ÓÒ×ÓÚά ......
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 52 in the jsp file: /vip_info.jsp
ÕË cannot be resolved
49: <table border="1& ......
ʹÓÃjavaÔÚwindows7 32λÏÂÁ¬½ÓMSSQL¡£
Á½Ì¨»úÆ÷£¬windows7 32룬ÔÚ¿ØÖÆÃæ°åÀïÃæÈ«²¿ÉèÖÃÓïÑÔºÍÇøÓòÑ¡Ïenglish-unitedstates
ΨһÇø±ðÖ»ÓÐÔÚ°²×°SQL server 2008µÄʱºò Ñ¡ÔñµÄ×Ö·û¼¯²»Ò»Ñù£¬
exec sp_helpsor ......
ÎÒ¸Õ°ÑÌ·ºÆÇ¿µÄµÚÈý°æµÄÊéѧÍ꣬ÎÒÖªµÀµÄÓÐC++£¬CºÍÖ¸Õë CȱÏݺÍÏÝÚå Cר¼Ò±ä³É£¬»¹ÓÐÊý¾Ý½á¹¹£¬ÎÒÏëÎÊÎÊÎÒÓ¦¸ÃÒÔʲô˳ÐòÀ´Ñ§ÄØ
CȱÏݺÍÏÝÚå Cר¼Ò±à³Ì
Êǽø½×µÄ£¬²»Óü±×Å¿´
ÖÁÓÚ
CºÍÖ¸Õë
Äã²»Àí½âÖ ......
[align=center][/align]CÓïÑÔÖÐÈçºÎÅжÏÒ»¸ödoubleÐ͵ÄÊý×飨Èçdouble S[20]£»£©ÊÇÒ»¸ö¿ÕÊý×飬¼´Êý×éÖÐûÓзÅÈκÎÖµ¡£
û°ì·¨¡£
"ÈκÎÖµ" µÄ¶¨Òå?
¾ÍÊÇÊý×éÊǿյģ¬Ã»ÓÐΪËü¸³Öµ
¿ÉÒÔ¿¼Â ......