⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ado_ref_stream.asp@output=print

📁 W3Schools tutorial..web designing
💻 ASP@OUTPUT=PRINT
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-US" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
<head>

<title>ADO Stream Object</title>
 
<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta name="Keywords" content="xml,tutorial,html,dhtml,css,xsl,xhtml,javascript,asp,ado,vbscript,dom,sql,colors,soap,php,authoring,programming,training,learning,beginner's guide,primer,lessons,school,howto,reference,examples,samples,source code,tags,demos,tips,links,FAQ,tag list,forms,frames,color table,w3c,cascading style sheets,active server pages,dynamic html,internet,database,development,Web building,Webmaster,html guide" />

<meta name="Description" content="Free HTML XHTML CSS JavaScript DHTML XML DOM XSL XSLT RSS AJAX ASP ADO PHP SQL tutorials, references, examples for web building." />

<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "../../https@ssl./default.htm" : "../../www./default.htm");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-3855518-1");
pageTracker._initData();
pageTracker._trackPageview();
</script>

</head>
<body>

<p>From <b>http://www.w3schools.com</b> (Copyright Refsnes Data)</p>

<h1>ADO Stream Object</h1>
<a href="ado_ref_recordset.asp"><img border="0" src="../images/btn_previous.gif" alt="prev" width="100" height="20" /></a>
<a href="ado_datatypes.asp"><img border="0" src="../images/btn_next.gif" alt="next" width="100" height="20" /></a>
<hr />

<h2>Stream Object (ADO version 2.5)</h2>
<p>The ADO Stream Object is used to read, write, and manage a stream of binary data or text.</p>
<p>A Stream object can be obtained in three ways:</p>
<ul>
  <li>From a URL pointing to a document, a folder, or a Record object</li>
  <li>By instantiating a Stream object to store data for your application</li>
  <li>By opening the default Stream object associated with a Record object</li>
</ul>
<h3>Syntax</h3>
<table class="ex" cellspacing="0" border="1" width="100%" cellpadding="3">
  <tr valign="top">
    <td valign="top">
      <pre>objectname.property
objectname.method</pre>
    </td>
  </tr>
</table>
<br />
<hr />

<h3>Properties</h3>
<table class="ex" cellspacing="0" border="1" width="100%" cellpadding="3">
  <tr valign="top">
    <th width="40%" align="left" valign="top">Property</th>
    <th width="60%" align="left" valign="top">Description</th>
  </tr>
  <tr valign="top">
    <td valign="top"><a href="prop_stream_charset.asp">CharSet</a></td>
    <td valign="top">Sets or returns a value that specifies into which character set the contents
      are to be
      translated. This property is only used with text Stream objects (type is
      adTypeText)</td>
  </tr>
  <tr valign="top">
    <td valign="top"><a href="prop_stream_eos.asp">EOS</a></td>
    <td valign="top">Returns whether the current position is at the end of the
      stream or not</td>
  </tr>
  <tr>
    <td valign="top"><a href="prop_stream_lineseparator.asp">LineSeparator</a></td>
    <td valign="top">Sets or returns the line separator character used in a text Stream
      object</td>
  </tr>
  <tr>
    <td valign="top"><a href="prop_stream_mode.asp">Mode</a></td>
    <td valign="top">Sets or returns the available permissions for modifying
      data</td>
  </tr>
  <tr>
    <td valign="top"><a href="prop_stream_position.asp">Position</a></td>
    <td valign="top">Sets or returns the current position (in bytes) from the
      beginning of a Stream object</td>
  </tr>
  <tr>
    <td valign="top"><a href="prop_stream_size.asp">Size</a></td>
    <td valign="top">Returns the size of an open Stream
      object</td>
  </tr>
  <tr>
    <td valign="top"><a href="prop_stream_state.asp">State</a></td>
    <td valign="top">Returns a value describing if the Stream object is open or
      closed</td>
  </tr>
  <tr>
    <td valign="top"><a href="prop_stream_type.asp">Type</a></td>
    <td valign="top">Sets or returns the type of data in a Stream object</td>
  </tr>
</table>

<h3>Methods</h3>
<table class="ex" cellspacing="0" border="1" width="100%" cellpadding="3">
  <tr valign="top">
    <th width="40%" align="left" valign="top">Method</th>
    <th width="60%" align="left" valign="top">Description</th>
  </tr>
  <tr>
    <td valign="top"><a href="met_stream_cancel.asp">Cancel</a></td>
    <td valign="top">Cancels an execution of an Open call on a Stream object</td>
  </tr>
  <tr>
    <td valign="top"><a href="met_stream_close.asp">Close</a></td>
    <td valign="top">Closes a Stream object</td>
  </tr>
  <tr>
    <td valign="top"><a href="met_stream_copyto.asp">CopyTo</a></td>
    <td valign="top">Copies a specified number of characters/bytes from one
      Stream object into another Stream object</td>
  </tr>
  <tr>
    <td valign="top"><a href="met_stream_flush.asp">Flush</a></td>
    <td valign="top">Sends the contents of the Stream buffer to the associated
      underlying object</td>
  </tr>
  <tr>
    <td valign="top"> <a href="met_stream_loadfromfile.asp"> LoadFromFile</a></td>
    <td valign="top">Loads the contents of a file into a Stream object</td>
  </tr>
  <tr>
    <td valign="top"><a href="met_stream_open.asp">Open</a></td>
    <td valign="top">Opens a Stream object</td>
  </tr>
  <tr>
    <td valign="top"><a href="met_stream_read.asp">Read</a></td>
    <td valign="top">Reads the entire stream or a specified number of bytes from
      a binary Stream object</td>
  </tr>
  <tr>
    <td valign="top"> <a href="met_stream_readtext.asp"> ReadText</a></td>
    <td valign="top">Reads the entire stream, a line, or a specified number of
      characters from a text Stream object</td>
  </tr>
  <tr>
    <td valign="top"> <a href="met_stream_savetofile.asp"> SaveToFile</a></td>
    <td valign="top">Saves the binary contents of a Stream object to a file</td>
  </tr>
  <tr>
    <td valign="top"> <a href="met_stream_seteos.asp"> SetEOS</a></td>
    <td valign="top">Sets the current position to be the end of the stream (EOS)</td>
  </tr>
  <tr>
    <td valign="top"><a href="met_stream_skipline.asp">SkipLine</a></td>
    <td valign="top">Skips a line when reading a text Stream</td>
  </tr>
  <tr>
    <td valign="top"><a href="met_stream_write.asp">Write</a></td>
    <td valign="top">Writes binary data to a binary Stream object</td>
  </tr>
  <tr>
    <td valign="top"><a href="met_stream_writetext.asp">WriteText</a></td>
    <td valign="top">Writes character data to a text Stream object</td>
  </tr>
</table>
<br />
<hr />
<a href="ado_ref_recordset.asp"><img border="0" src="../images/btn_previous.gif" alt="prev" width="100" height="20" /></a>
<a href="ado_datatypes.asp"><img border="0" src="../images/btn_next.gif" alt="next" width="100" height="20" /></a>

<p>From <b>http://www.w3schools.com</b> (Copyright Refsnes Data)</p>

</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -