public byte[] GetImageStream(int procInstId) { ViewControl control = new ViewControl(); control.Xml = _provider.GetViewProcess(procInstId); return(control.GetImageStream()); }