L
Lauchlan M
I have a .jpg image in a BLOB field in my database and I want to load it
into a System.Web.UI.WebControls.Image image control.
I have some code like this that fills a datareader:
<<
NxDataReader dtrData;
nxCommand.Parameters["SessionID"].Value =
Request.QueryString["SessionDataID"];
nxConnection.Open();
dtrData = (NexusDB.ADOProvider.NxDataReader)nxCommand.ExecuteReader();
if (dtrData.Read())
{
// load imgECGImage from the BLOB
byte[] ECGBLOB = new byte[0];
ECGBLOB = (byte[])dtrData["ECG_Image"];
//int ArraySize = new int();
//ArraySize = ECGBLOB.GetUpperBound(0);
I now need to get the BLOB from the byte array into the imgECGImage image
web control.
Any pointers on how to do this? Or do I have to use a dataadapter and
dataset and databind that image field to that image component?
Thanks!
Lauchlan M
into a System.Web.UI.WebControls.Image image control.
I have some code like this that fills a datareader:
<<
NxDataReader dtrData;
nxCommand.Parameters["SessionID"].Value =
Request.QueryString["SessionDataID"];
nxConnection.Open();
dtrData = (NexusDB.ADOProvider.NxDataReader)nxCommand.ExecuteReader();
if (dtrData.Read())
{
// load imgECGImage from the BLOB
byte[] ECGBLOB = new byte[0];
ECGBLOB = (byte[])dtrData["ECG_Image"];
//int ArraySize = new int();
//ArraySize = ECGBLOB.GetUpperBound(0);
I now need to get the BLOB from the byte array into the imgECGImage image
web control.
Any pointers on how to do this? Or do I have to use a dataadapter and
dataset and databind that image field to that image component?
Thanks!
Lauchlan M