Look at this self explanatory example. it uses Bindata class to get the 
image stored in the table in the form of container.it sets the images 
and stores the images in some temporroy file . and later this image can 
be displayed thru activex control.
   #WinAPI
    str       html;
    str       tempdir;
    binData   bin;
    container image;
      try
    {
        image = SysImageTable::getImage(images.RecId);
          if (conlen(image))
        {
            bin = new BinData();
            bin.setData(image);
              tempdir = WinAPI::getFolderPath(#CSIDL_INTERNET_CACHE);
              if (tempdir && strFind(tempdir, '\\', strLen(tempdir), 1) 
== 0)
                tempdir += '\\';
              bin.saveFile(tempdir + images.filename());
              html = '<html><body>' +
                   '<img src="' + tempdir + images.filename() + '" 
border=0 width=100% height=100%>' +
                   '</body></html>';
              shower.documentHTML(html);
          }
        else
        {
            html = '<html><head></head><body bgcolor="gray">';
            html += '</body></html>';
            shower.documentHTML(html);
              lblImageStatus.visible(true);
            lblImageStatus.text("@SYS60147");
        }
    }
      catch (EXCEPTION::Warning)
    {
        error(StrFmt("@SYS19312", images.filename()));
    }
}
regards,
sreenath reddy

archanalakhotiya <[EMAIL PROTECTED]> wrote:                                  Hi 
All,
 
 What value should be passed to bindata.setData() method ?
 The method accepts container type of data.
 But what type of value should be passed to container ?
 I have tried with string and integer type of data, but it fails.
 
 Please help me out.
 
 Thanks,
 Archana Lakhotiya
 
 
     
                       


 

 __________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

[Non-text portions of this message have been removed]

Reply via email to