public static byte[] GetGlobalSegment(RandomAccessFileOrArray ra ) { try { JBIG2SegmentReader sr = new JBIG2SegmentReader(ra); sr.Read(); return sr.GetGlobal(true); } catch { return null; } }