Object: | SoftArtisans.FileUp | ||
Syntax: | TransferBlob([in] ADOField) | ||
Description: |
This method transfers (downloads) a file from a database to the browser. The ADOField argument must point to a valid ADO Field object that supports the GetChunk
method. Any OLEDB provider that supports the GetChunk method can be used with TransferBlob.
For Microsoft SQL Server, the column should be of 'image' or 'text' type. This distribution includes a sample SQL script that you can use to create tables for use in uploading files. See the Setup Instructions for uploading to a database on the server. For Microsoft Access, the column should be 'OLE Object'. You can use the sample Access database included with this distribution (in the Samples directory) for downloading and uploading files. It comes pre-populated with a record containing a Microsoft Word document. When reading from BLOB (Binary Large OBject) fields, the ADO Recordset's cursor type should be set to adOpenStatic (3). Typically, you set the content (MIME) type before executing this method. The data is sent exactly as stored, with no interpretation and no Unicode to multi-byte conversion.
|
||
See Also: | ADO.NET and TransferBlob | ||
Examples: | |||
|