Good day I am a bit frustrated as my code work in Android but not in IOS
I get the following error
Error occurred on line: 65 (Main)
Error loading image.
Stack Trace: (
CoreFoundation <redacted> + 252
libobjc.A.dylib objc_exception_throw + 56
CoreFoundation <redacted> + 0
Emerald Qld -[B4IBitmap innerInit::] + 352
Emerald Qld -[B4IBitmap Initialize2:] + 76
Emerald Qld -[ResumableSub_main_Application_Start resume::] + 5400
CoreFoundation <redacted> + 144
CoreFoundation <redacted> + 292
Emerald Qld +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1624
Emerald Qld -[B4IShell runMethod:] + 448
Emerald Qld -[B4IShell raiseEventImpl:method:args::] + 2164
Emerald Qld -[B4IShellBI raiseEvent:eventarams:] + 1372
Emerald Qld -[B4IDelegatableResumableSub resume::] + 380
Emerald Qld -[B4I checkAndRunWaitForEvent:eventarams:] + 552
Emerald Qld -[B4IShellBI raiseEvent:eventarams:] + 1228
Emerald Qld __37-[B4ICommon ReturnFromResumableSub::]_block_invoke + 368
libdispatch.dylib <redacted> + 24
libdispatch.dylib <redacted> + 16
libdispatch.dylib <redacted> + 1068
CoreFoundation <redacted> + 12
CoreFoundation <redacted> + 1964
CoreFoundation CFRunLoopRunSpecific + 436
GraphicsServices GSEventRunModal + 100
UIKitCore UIApplicationMain + 212
Emerald Qld main + 124
libdyld.dylib <redacted> + 4
)
Class (b4i_httpjob) instance released.
image = "/9j/4AAQSkZJRgABAQEAYABgAAD//gA8Q1JFQVRPUjogZ2QtanBlZyB2MS4wICh1c2luZyBJSkcg\nSlBFRyB2OTApLCBxdWFsaXR5ID0gMTAwCv/bAEMAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEB\nAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/bAEMBAQEBAQEBAQEBAQEBAQEB\nAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIBMgG\nYAMBIgACEQED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ZZ\nYlaW0t3KRhjEANx+avj98QvHmt+CrT4Xa94hn1bwdp1xEdM0q/igmjtQ0TAWonaM3MtpFbSSRW8U\n1zcRQREQ24it/wByP6BPih8Lz470Wym1FoNQ1vTLZYttraCztboyyIbk28c9zdT26Fwsgie9lXYj\nISzsrD+bv9tX4iaV8Dfih4m8IfFjQp/BFzY6Z/afhRtSa0Fl4q0iQyxWWoaNfQXdxbXMEl1azwXU\niSJJa3KNDcW0U (message truncated)...
I get the following error
Error occurred on line: 65 (Main)
Error loading image.
Stack Trace: (
CoreFoundation <redacted> + 252
libobjc.A.dylib objc_exception_throw + 56
CoreFoundation <redacted> + 0
Emerald Qld -[B4IBitmap innerInit::] + 352
Emerald Qld -[B4IBitmap Initialize2:] + 76
Emerald Qld -[ResumableSub_main_Application_Start resume::] + 5400
CoreFoundation <redacted> + 144
CoreFoundation <redacted> + 292
Emerald Qld +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1624
Emerald Qld -[B4IShell runMethod:] + 448
Emerald Qld -[B4IShell raiseEventImpl:method:args::] + 2164
Emerald Qld -[B4IShellBI raiseEvent:eventarams:] + 1372
Emerald Qld -[B4IDelegatableResumableSub resume::] + 380
Emerald Qld -[B4I checkAndRunWaitForEvent:eventarams:] + 552
Emerald Qld -[B4IShellBI raiseEvent:eventarams:] + 1228
Emerald Qld __37-[B4ICommon ReturnFromResumableSub::]_block_invoke + 368
libdispatch.dylib <redacted> + 24
libdispatch.dylib <redacted> + 16
libdispatch.dylib <redacted> + 1068
CoreFoundation <redacted> + 12
CoreFoundation <redacted> + 1964
CoreFoundation CFRunLoopRunSpecific + 436
GraphicsServices GSEventRunModal + 100
UIKitCore UIApplicationMain + 212
Emerald Qld main + 124
libdyld.dylib <redacted> + 4
)
Class (b4i_httpjob) instance released.
image = "/9j/4AAQSkZJRgABAQEAYABgAAD//gA8Q1JFQVRPUjogZ2QtanBlZyB2MS4wICh1c2luZyBJSkcg\nSlBFRyB2OTApLCBxdWFsaXR5ID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s\nqoztXFftV2GveMNT+A/w/wDBes6HpHjm6+Lem+P9Gk1yBr6yisvhppWqa1fXtzp8RSe5s7ae4sBJ\nHFLbvNNJBaR3du1wJU/ZOB8llhcuyvLs2bxf7iti8whFzUIqrhquMq0lUUZVHTw8pUY1KsldctR/\nAqUZcfMo1eaCsoyulvoj839Y+A/jb4PaJ4e8J+N5LC51S20ezknn0m6a+06VipjbyZ5LaxmkjWZZ\nYlaW0t3KRhjEANx+avj98QvHmt+CrT4Xa94hn1bwdp1xEdM0q/igmjtQ0TAWonaM3MtpFbSSRW8U\n1zcRQREQ24it/wByP6BPih8Lz470Wym1FoNQ1vTLZYttraCztboyyIbk28c9zdT26Fwsgie9lXYj\nISzsrD+bv9tX4iaV8Dfih4m8IfFjQp/BFzY6Z/afhRtSa0Fl4q0iQyxWWoaNfQXdxbXMEl1azwXU\niSJJa3KNDcW0U (message truncated)...
B4X:
wait for (Data.GetEmergincyList)Complete(bList As List)
If bList.IsInitialized=True Then
For I = 0 To bList.Size-1
Dim M As Map
M.Initialize
M=bList.get(I)
Log(M)
Dim SU As StringUtils
Dim bm1 As Bitmap
bm1.Initialize(File.DirAssets,"emeraldLogo.png")
Dim Base64String As String = m.Get("image")
Dim FileBytes() As Byte
Dim bm As Bitmap
If Base64String.Length > 4 Then
FileBytes=SU.DecodeBase64(Base64String.Trim)
Dim Inputstream1 As InputStream
Inputstream1.InitializeFromBytesArray(FileBytes,0,FileBytes.Length)
bm.Initialize2(Inputstream1) '<-----ERROR ON THIS LINE
Inputstream1.Close
Sleep(100)
Else
Last edited: