Home > Contents > Index >
Expanded TOC | Purpose TOC | Annotated TOC | Index
MiscGetBlob
Returns a blob (binary large object) stored in Content Server.
Syntax
miscGetBlob(java.lang.String authusername, java.lang.String authpassword, java.lang.String BLOBHEADER, java.lang.String BLOBTABLE, java.lang.String BLOBCOL, java.lang.String BLOBWHERE, java.lang.String BLOBKEY)Parameters
authusername (required)
- (String) Name of the user to log in, as registered in Content Server.
authpassword(required)
- (String) Password for the associated user name.
BLOBHEADER (Optional)
- (String) Description of the image format, which corresponds to the mimetype for returned data in the form
description/extension
. Specify any one of the following possible values:image/jpeg
,image/gif
,image/jpg
.
BLOBTABLE (required)
- (String) The name of the CS-Direct table that stores assets of this type. Typically, this is the CS-Direct
ImageFile
asset type. If you create your own asset type, specify that asset type instead.
BLOBCOL (required)
- (String) The name of the column that contains the binary data.
BLOBWHERE (required)
- (String) Value of the primary key for the row that contains the binary data.
BLOBKEY (required)
- (String) The name of the column used as the primary key. Typically, this is
id
, unless otherwise defined.
Returns
Blob object; for example, a PDF file. The blob is base-64 encoded and wrapped in XML.
Exceptions
None.
Example
The following Java code loads an article identified by object ID and gets text properties and binary properties.
MiscService service = (MiscService)new MiscService_Impl(); MiscPortType port = service.getMiscPort(); byte[] blobOUT = port.miscGetBlob("user_author", "demo", null, "Article", "urlbody", "984156693953", "id");
Home > Contents > Index > ![]()
FatWire Web Services Reference
Copyright 2005,2006,2007 by FatWire Software
All rights reserved.