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

¹ØÓÚXMLÖÐ×Ö½ÚдÈëÁ÷×Ö¶ÎʱµÄ˵Ã÷

·½·¨Ò»£º
      ²ÉȡͨÓõÄbase64±àÂ뷽ʽ£¬È¡Ê±½âÂë´æÊ±¼ÓÂë¡£
ëÀÏʦÌṩÁËÍêÕûµÄ±àÂë´úÂ룬ÇÒЧÂʺܸߡ£
unit Base64;

interface

uses SysUtils, Classes;

type
{$IFDEF UNICODE}
Base64String = AnsiString;
{$ELSE}
Base64String = string;
{$ENDIF}

// °´Ô´³¤¶ÈSourceSize·µ»ØBase64±àÂëËùÐ軺³åÇø×Ö½ÚÊý
function Base64EncodeBufSize(SourceSize: Integer): Integer;
// »ñÈ¡SourecµÄBase64±àÂ룬Base64Buf±ØÐëÓÐ×ã¹»³¤¶È¡£·µ»ØÊµ¼Ê±àÂë×Ö½ÚÊý
function Base64Encode(const Source; SourceSize: Integer; var Base64Buf): Integer; overload;
// ½«Source±àÂëΪBase64×Ö·û´®·µ»Ø `
function Base64Encode(const Source; SourceSize: Integer): Base64String; overload;
// ½«Source´ÓStartPos¿ªÊ¼µÄSize³¤¶ÈµÄÄÚÈÝÔ´±àÂëΪBase64£¬Ð´ÈëÁ÷Dest¡£
// Size=0 ±íʾһֱ±àÂëµ½Îļþβ
procedure Base64Encode(Source, Dest: TStream; StartPos: Int64 = 0; Size: Int64 = 0); overload;
// °Ñ×Ö·û´®Str±àÂëΪBase64×Ö·û´®·µ»Ø
{$IFDEF UNICODE}
function StrToBase64(const Str: AnsiString): Base64String; overload;
function StrToBase64(const Str: string): Base64String; overload;
{$ELSE}
function StrToBase64(const Str: string): Base64String;
{$ENDIF}

// °´¸ø¶¨µÄ±àÂëÔ´SourceºÍ³¤¶ÈSourceSize¼ÆËã²¢·µ»Ø½âÂ뻺³åÇøËùÐè×Ö½ÚÊý
function Base64DecodeBufSize(const Base64Source; SourceSize: Integer): Integer;
// ½«Base64±àÂëÔ´Base64Source½âÂ룬Buf±ØÐëÓÐ×ã¹»³¤¶È¡£·µ»ØÊµ¼Ê½âÂë×Ö½ÚÊý
function Base64Decode(const Base64Source; SourceSize: Integer; var Buf): Integer; overload;
// ½«Source´ÓStartPos¿ªÊ¼µÄSize³¤¶ÈµÄBase64±àÂëÄÚÈݽâÂ룬дÈëÁ÷Dest¡£
// Size=0 ±íʾһֱ½âÂëµ½Îļþβ
procedure Base64Decode(Source, Dest: TStream; StartPos: Int64 = 0; Size: Int64 = 0); overload;
// ½«Base64±àÂëÔ´Base64Source½âÂëΪ×Ö·û´®·µ»Ø
function Base64Decode(const Base64Source; SourceSize: Integer): string; overload;
// °ÑBase64×Ö·û´®Base64Str½âÂëΪ×Ö·û´®·µ»Ø
function Base64ToStr(const Base64Str: Ba


Ïà¹ØÎĵµ£º

SQl 2005 For XMl ¼òµ¥²éѯ(Raw£¬Auto£¬Pathģʽ)(2)

ÎÄÕµ¼º½ SQL Server 2005 ѧϰ±Ê¼ÇϵÁÐÎÄÕµ¼º½
     ÔÚSQl 2005 For XMl ¼òµ¥²éѯ(Raw£¬Auto£¬Pathģʽ)(1) ÀïÎÒÃÇ˵Á˹ØÓÚPath£¬RawºÍAutoģʽµÄÓ÷¨£¬ÆäʵÀïÃæ²»½ö½ö ÊÇÕâЩ¼òµ¥µÄ²Ù×÷£¬»¹ÓÐһЩÆäËüµÄÌØÐÔ£¬±ÈÈç˵Type»òOpenXml·½·¨£¬sp_xml_preparedocument´æ´¢¹ý³Ì µÈÕâЩÔö¼ÓµÄ¶«¶«£¬ÎÒÃÇÀ´Ò» ......

Retrieving an XML document using Ajax


Retrieving an XML document using Ajax
http://www.javascriptkit.com/dhtmltutors/ajaxgetpost3.shtml
When making a server request in Ajax, the data returned can be in either
plain text/html, or an XML document instead. The later is technically
just a text file as well, but with s ......

XML ²éѯ¡¢Ìí¼Ó¡¢Ð޸ġ¢É¾³ý

Query:
XmlDocument doc = new XmlDocument();
  
doc.Load(Server.MapPath(".\\db\\dbGuest.xml"));
           
//UserÊÇXML¸ù½Úµã,Name×Ö½Úµã
      lbEmail.Text =
doc.SelectSingleNode("//User ......

ÔõôÓÃXML´«ËÍͼÏñÊý¾Ý

DelphiÖÐÓÐÒ»¸öEncdDecdµ¥Ôª,uses   Ëü,ÒÔϵĺ¯Êý³ö×ÔÕâ¸öµ¥Ôª  
   
  1.ÓÃTBitmap¶ÔÏóLoadͼƬ  
    TBitmap.LoadfromFile  
  2.°ÑTBitmap´æÈëÒ»¸öStreamÖÐ    
TBitmap.SaveToStream(mapStream)  
  3.°ÑͼƬÁ÷½øÐÐbase64±àÂë,É ......

js ¶ÁÈ¡xmlÎĵµ

<html>
<head>
<title>XML Demo</title>
</head>
<body>
<script language="javascript">
function window.onload()
{
var domXML=new ActiveXObject("Microsoft.xmldom");
domXML.load("aTest.xml");
var myRoot=domXML.documentElement;
var myNodes2=myRoot.child ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ