示例#1
0
 public byte[] GetBlob(int ordinal, int maxsize)
 {
     if (reader.IsDBNull(ordinal))
     {
         return(new byte[0]);
     }
     else
     {
         byte[] buffer = new byte[maxsize];
         int    size   = (int)reader.GetBytes(ordinal, 0, buffer, 0, maxsize);
         JPBlob blob   = new JPBlob();
         blob.setBlob(buffer, size, 0);
         return(blob.Buffer);
     }
 }
示例#2
0
 public byte[] GetBlob(int ordinal, int maxsize, out bool isNull)
 {
     isNull = reader.IsDBNull(ordinal);
     if (isNull)
         return new byte[0];
     else
     {
         byte[] buffer = new byte[maxsize];
         int size = (int)reader.GetBytes(ordinal, 0, buffer, 0, maxsize);
         JPBlob blob = new JPBlob();
         blob.setBlob(buffer, size, 0);
         return blob.Buffer;
     }
 }