Miraplacid Scripting Components Manual

 
 

Miraplacid MSCBlob 2.0

MSCBlob (Binary Large Object) is an auxiliary component for data blocks for storing and transmitting. It could contain a raw data and represent it as a binary or string. There are 3 alternative string representations: as-is (String), Base64 and Hex.

Component creation

To create component, use following constructions
  • JScript: var obj = Server.CreateObject("Miraplacid.MSCBlob");
  • VBScript: set obj = Server.CreateObject("Miraplacid.MSCBlob")

Note: Component designed for Apartment threading model. Therefore, the best scope of their using is ASP page level scope.
Using components of version 2.0 in Application and Session scopes may cause problems with your ASP Server (IIS or Chili) productivity.
To learn more about ASP execution scopes, see your ASP Server manual.

Object reference


Method Parameters Return Value Description
Clear None None Clears stored data.
Copy MSCBlob target,
Long from,
Long length
None Copies stored data from position to target MSCBlob object specified by user.
Insert MSOBlob source,
Long at
None Inserts data from source MSCBlob into this one at specified position.
LoadFromFile String FileName None Loads data from file into MSCBlob object.
SaveToFile String FileName None Saves MSCBlob raw data to the file (file will be rewritten if it exists and will be created if it doesn't exist).

Property Type Description
Size Long Size of stored data in bytes.
Bin Array Returns SAFEARRAY of BYTES (raw data).
Str String Returns string which contains raw MSCBlob data.
Hex String Returns string which contains hexadecimal representation of internal raw data.
Base64 String Returns string which contains base64 representation of internal data.

 
 
Technical Support   Copyright © 2001 - 2005 by Miraplacid