Home > Contents > Index > 
Creates a BlobServer URL without embedding it in an HTML tag.
<RENDER.GETBLOBURL
      OUTSTR="VariableName"
      [BLOBTABLE="blobTable"]
      [BLOBKEY="primaryKeyName"]
      [BLOBWHERE="primaryKeyValue"]
      [BLOBCOL="column name"]
      [C="asset type"]
      [CID="asset id"]
      [ASSET="asset instance name"]
      [FIELD="asset field name"]
      [BLOBHEADER="MIMEtype"]
      [BLOBNOCACHE="false"]
      [ADDSESSION="true"]
      [DYNAMIC="true"]
      [CSBLOBID="session variable value"]
      [ASSEMBLER="uri assembler shortform"]
      [CONTAINER="servlet|portlet"]
      [FRAGMENT="fragment value"]
      [PARENTID="parent to log this blob as a dependency"]
      [SATELLITE="true|false"]
      [SCHEME="scheme value"]
      [AUTHORITY="authority value"]
      >
      [<RENDER.ARGUMENT NAME="argname" VALUE="argvalue"/>]
</RENDER.GETBLOBURL>
outstr (required)blobtable (optional)blobtable="ImageFile".blobkey (required, if blobtable set)id.blobwhere (required, if blobtable set)blobcol (required, if blobtable set)blobcol="urlpicture".field (required, if blobtable not set)asset (optional)c (required, if asset and blobtable not set)cid (required, if asset and blobtable not set)blobheader (optional)description/extension. For example, the mimetype for a GIF image is image/gif.blobnocache (optional)true prevents the blob from being cached.addsession  (optional)true means to encode session IDs in the URL. If this parameter is not specified, it is set to true by default.dynamic (optional)true means to create a dynamic URL even if rendermode is set to export. false means to create a static URL if rendermode is set to export.  If this parameter is not specified, it is set to false by default.blobheadernamen (optional)blobheadername parameter is used in conjunction with the blobheadervalue parameter to produce name/value pairs. This parameter represents the variable name. blobheadervaluen (optional)blobheadername to specify and represent HTTP header variable values.csblobid (optional)img src service parameter sends a new request to the application server after the browser reads the containing page. BlobServer then verifies if the csblobid parameter was set. When BlobServer security is set to true and the csblobid value matches the session variable value, the blob is served. If the values do not match, a security violation is reported and no blob is servedassembler (optional)container (optional)servlet should be sufficient.  Legal values are servlet and portlet. fragment (optional)http://www.myhost.com/foo.html#thirdParagraph. parentid (optional)satellite (optional) true (Satellite Server URL) and false (Content Server URL). scheme (optional, required if authority is set)http or https. If this is left blank (and authority is left blank) then the URL will be relative to the current scheme and authority. authority (optional, required if scheme is set) scheme. URLs are of the form scheme://authority/path?query#fragment. For most purposes, authority corresponds to host:port for the given application. Specifying scheme and authority allows for fully-qualified URLs to be created, which is useful for sites with multiple domains and in other cases.render:argument (optional)render:argument include:This tag creates a BlobServer URL.
If rendermode is set to export,the tag creates a static URL; that is, a file name for an HTML file. It creates the URL based on the parameters described in the following section. These are a set of arguments that specify the table the blob is stored in, the name of the column that contains the binary data, the name of the primary key of the table, the value in that column to use to identify the object, and so on.
If rendermode is set to live, the tag creates a dynamic URL according to the current assembler. 
Based on this information, RENDER.GETBLOBURL creates a URL for the blob asset and returns it to the element that requested it in a variable specified by the outstr parameter. The requesting element can then use the variable in an HTML tag to create the link.
To create BlobServer URL embedded in an HTML tag, use the RENDER.SATELLITEBLOB tag.
You can use the blobheadername and blobheadervalue parameters to specify http headers in the BlobServer response.  For example, you can specify the content-type as follows:
blobheadername1="Content-Type" blobheadervalue1="image/gif"
If you want to use http headers to prevent browser caching of BlobServer requests for all browsers, use both HTTP 1.0 and HTTP 1.0 cache control directives. In the following example, the first header (Cache-Control:no-cache) is the HTTP 1.1 directive and the second header (Pragma:no-cache) is the HTTP 1.0 directive.
blobheadername1="Cache-Control" blobheadervalue1="no-cache" blobheadername2="Pragma" blobheadervalue2="no-cache"
NOTE: The table name containing the blob, the primary key of the table, the id of the table row, and the column name that contains the binary data are all optional parameters. The same information can be provided to this tag by specifying an asset type, id and field name, or an asset instance object name and field name. However, there is an advantage to using the latter forms. If the owning asset is changed, Blob Server will invalidate the cached blob, but only if it was served via one of the asset forms of the render:getbloburl tag.
None.
The following example is in JSP but the XML syntax is analogous. This code creates a BlobServer URL for an ImageFile asset identified through an ID passed in with blobwhere='<%=ics.GetVar("asset:id")%>' and stores it in a variable named "theURL":
<render:getbloburl 
        blobtable="ImageFile" 
        blobcol="urlpicture" 
        blobheader='<%=ics.GetVar("asset:mimetype")%>' 
        blobkey="id" 
        blobwhere='<%=ics.GetVar("asset:id")%>' 
        outstr="theURL"/>
This code does the same, except the cached blob will be invalidated when the corresponding ImageFile asset is modified:
<render:getbloburl 
        c="ImageFile" 
        field="urlpicture" 
        blobheader='<%=ics.GetVar("asset:mimetype")%>' 
        cid='<%=ics.GetVar("asset:id")%>' 
        outstr="theURL"/>
This code does the same, except uses an already-loaded imagefile asset instead:
<asset:load 
       name="myasset" 
       type="ImageFile" 
       objectid='<%=ics.GetVar("asset:id")%>'/>
<render:getbloburl 
        asset="myasset" 
        field="urlpicture" 
        blobheader='<%=ics.GetVar("asset:mimetype")%>' 
        outstr="theURL"/>
 RENDER.SATELLITEBLOB 
    RENDER.PACKEDARGS 
| Home > | Contents > | Index > | ||
 
 | 
FatWire XML Tag Reference | 
|||