ÔõôÓÃXML´«ËÍͼÏñÊý¾Ý
DelphiÖÐÓÐÒ»¸öEncdDecdµ¥Ôª,uses Ëü,ÒÔϵĺ¯Êý³ö×ÔÕâ¸öµ¥Ôª
1.ÓÃTBitmap¶ÔÏóLoadͼƬ
TBitmap.LoadfromFile
2.°ÑTBitmap´æÈëÒ»¸öStreamÖÐ
TBitmap.SaveToStream(mapStream)
3.°ÑͼƬÁ÷½øÐÐbase64±àÂë,Éú³ÉÒ»¸ö×Ö·û´®Á÷
EncodeStream(Input, Output: TStream)
ÕâÀïInputÊÇÄãµÄͼƬÁ÷,OutputÊÇÄãÔ¤ÏȽ¨ºÃµÄ×Ö·û´®Á÷
4.´Ó×Ö·û´®Á÷ÖжÁ³ö×Ö·û´® TStringStream.DataString
´Ó×Ö·û´®×ª»»ÎªÍ¼Æ¬ÊÇÒ»¸öÄæ¹ý³Ì.ÓÃDecodeStreamº¯Êý
ÁíÍâÁ÷´¦Àíʱ,ҪעÒâStream.Postion,×¢Òâ»Øλ.
Ïà¹ØÎĵµ£º
JAXBContext jc = JAXBContext.newInstance(ICPBuildSummaryXO.class);
Unmarshaller u = jc.createUnmarshaller();
ICPBuildSummaryXO xo = (ICPBuildSummaryXO) u.unmarshal(node);
ICPBuildSummary summary = new ICPBuildSummary();
Bean ......
¡¡¡¡ÔÚÇ°ÃæÎÒÃÇѧϰÁËʹÓÃGlibµÄ¸ß³ÌÀ¦°ó·½Ê½µÄmethodµÄÊÕ·¢£¬ÏÖÔÚѧϰsingalµÄÊÕ·¢£¬xmlÀý×ÓÈçÏÂ
<?xml version="1.0" encoding="UTF-8" ?>
<node name="/com/wei/MyObject">
<interface name="com.wei.MyObject.Sample">
< ......
д±¾ÎĵÄÄ¿µÄÊÇΪÁË·½±ã´ó¼ÒÁ˽âC++ MSXML²Ù×÷·½·¨¡£
µ±È»£¬C++ÖжÔMSXMLµÄµ÷ÓÃÓжàÖÖ£¬±¾ÎIJÉÓõķ½·¨ÊÇÍêÈ«²ÎÕÕMSXML SDKÌṩµÄÎĵµ½øÐвÙ×÷¡£
Èç¹ûÓÐʲô´íÎ󣬻¶ÓÖ¸Õý¡£
´úÂë¿ò¼ÜÊÇ»ùÓÚvs2008 MFC ¶Ô»°¿ò³ÌÐò£¨UNICODE£©¡£¶Ô»°¿ò³ÌÐòÐèÒª¶ÁÕß×Ô¼º´´½¨¡£
#include <msxml6.h>
#include <comutil.h>
# ......
µ½http://sourceforge.net/projects/tinyxml/ÏÂÔØTinyXmlµÄ¹Ù·½Àý×Ó£¬
ÀïÃæÓкü¸¸öÎļþ£¬ÎÒÃÇ°Ñ
tinyxml.h
tinystr.h
tinystr.cpp
tinyxml.cpp
tinyxmlparser.cpp
tinyxmlerror.cpp
Õ⼸¸öÎļþ°üº¬µ½ÎÒÃǵŤ³ÌÄÚ¡£
Òª°üº¬Í·Îļþ #include "tinyxml.h"
ÕâÓþͿÉÒÔ¿ªÊ¼Ê¹ÓÃtinyxml¿ªÊ¼²Ù×÷xmlÎļþÁË£¬¾ßÌåµÄ²Ù×÷· ......