Android Question Image limit ?

mitsusdev

Member
Licensed User
Longtime User
i have a problem with images of 500Kb about.
Exist a limit for use with bitmap ?

java.lang.RuntimeException: Error loading bitmap.
at anywheresoftware.b4a.objects.drawable.CanvasWrapper$BitmapWrapper.Initialize2(CanvasWrapper.java:521)
at anywheresoftware.b4a.objects.drawable.CanvasWrapper$BitmapWrapper.Initialize(CanvasWrapper.java:499)
at anywheresoftware.b4a.keywords.Common.LoadBitmap(Common.java:1111)
at anywheresoftware.b4a.samples.httputils2.httpjob._getbitmap(httpjob.java:116)
at b4a.example.locandina._jobdone(locandina.java:630)
 

DonManfred

Expert
Licensed User
Longtime User
What code you are using to load the image to what?
What dimensions do the image have? w*h

Have you tried loadbitmapsample?
 
Upvote 0

mitsusdev

Member
Licensed User
Longtime User
B4X:
OutputImage = File.OpenOutput(File.DirInternalCache, FileImage, False)
Job.GetBitmap.WriteToStream(OutputImage , 100, "JPEG")
OutputImage.Close

i have found that the problem is only with images 32 bit depth.
 
Upvote 0
Top