I cant get snapshot from disabled camera ?

My camera is disabled but it has recording previously. When i try to get snapshot i get toolkit error. cannot initialize jpegVideoSource.

 Item item = Configuration.Instance.GetItem(alarm.EventHeader.Source.FQID);
 JPEGVideoSource jpegVideoSource = new JPEGVideoSource(item);
 jpegVideoSource.Compression = ImageQuality;
 jpegVideoSource.Init();
 if (!(jpegVideoSource.GetNearest(alarm.EventHeader.Timestamp) is JPEGData jpegData))
 {
     jpegVideoSource.Close();
     return string.Empty;
 }
 
 jpegVideoSource.Close();
 MemoryStream ms = new MemoryStream(jpegData.Bytes);
 Bitmap bitmap = new Bitmap(ms);

Is there any ay to get a snapshot when camera is disabled ?

No, there is no way to interact with a disabled camera. When a camera is disabled it is in effect removed from the system.