P pmt Member Licensed User Nov 15, 2017 #1 Hi , I use reqManager.ImageToBytes(myImgView.Bitmap) in my code and the error occur if the imageview is empty. This error: dbrequestmanager_imagetobytes (java line: 375) java.lang.RuntimeException: Object should first be initialized (Bitmap). ...... How to check if imageview empty or how to avoid this problem. Thanks in advance. Regards, PMT
Hi , I use reqManager.ImageToBytes(myImgView.Bitmap) in my code and the error occur if the imageview is empty. This error: dbrequestmanager_imagetobytes (java line: 375) java.lang.RuntimeException: Object should first be initialized (Bitmap). ...... How to check if imageview empty or how to avoid this problem. Thanks in advance. Regards, PMT
Erel B4X founder Staff member Licensed User Longtime User Nov 16, 2017 #2 B4X: If myImgView.Bitmap.IsInitialized Then ... End If Upvote 0