image datatype
-
i create new table and have feild from type image and allow null in my program i want to ck if this field is fill or empity ?? i use c# ,,,
Palestine
-
i create new table and have feild from type image and allow null in my program i want to ck if this field is fill or empity ?? i use c# ,,,
Palestine
-
i create new table and have feild from type image and allow null in my program i want to ck if this field is fill or empity ?? i use c# ,,,
Palestine
I've used variants of the following
public static T GetData<T>(IDataReader rdr, string column) { if (string.IsNullOrEmpty(column)) throw new ArgumentNullException("column"); if (rdr == null) throw new ArgumentNullException("rdr"); int pos = rdr.GetOrdinal(column); T returnValue = (rdr[pos] == DBNull.Value) ? default(T) : (T)rdr[pos]; return returnValue; } byte[]img = GetData<byte[]>(reader, "Photo"); string contact = GetData<string>(reader, "Contact");
My apologies if the syntax isn't 100% exact, but I'm typing this out from memory.Deja View - the feeling that you've seen this post before.