BLOB Object in Crystal Reports

W

Winston

Hi,

The following codes Save an Image into a bmp file, then read it into a
Byte array. Then the byte array is written into the Database column
for future reference. For some records, when I tried to used BLOB
object in crystal Reports, it works perfectly. Then other case. there
is this red cross. When i click on properties, it say Not Available. I
have verfied that the bitmap files exists for all the working &
non-Working cases.


....
String sFileName = sSessionID + sWO + ".bmp";
FileStream fs = new FileStream(sFileName, FileMode.OpenOrCreate);
bm_Sign.Save(fs, ystem.Drawing.Imaging.ImageFormat.Bmp);

fs.Close();

fs = new FileStream(sFileName, FileMode.Open, FileAccess.Read);
byte[] MyData= new byte[fs.Length];
fs.Read(MyData, 0,System.Convert.ToInt32(fs.Length));
fs.Close();


Thanks in advance!

Thanks!
Winston
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top