[LayaAir 1.0]APP二次开发传字符串过长问题
由于需要APP中生成二维码不能用JS库,所以只能在JAVA和OC中开发,生成字符串返回base64字符串。但是native打包安卓APP后, ExportJavaFunction.CallBackToJS(Test.class,"test",str);
二次开发中 APP调用JS方法的时候str字符串过长有丢失,请问是否有这个问题呢?请帮忙查看下?
(字符串大概只收到1000个字符左右)
原字符串(在JAVA端打印):
iVBORw0KGgoAAAANSUhEUgAAAQQAAAEECAYAAADOCEoKAAAABHNCSVQICAgIfAhkiAAABVlJREFUeJzt3UuO4zgQQMHyYO5/Zc/uraaghthEUnbE3pZ/eCDANPV6v9/vH4Cfn59/pl8AcA5BACIIQAQBiCAAEQQgggBEEIAIAhBBACIIQAQBiCAA+ffuA1+v1998Hce5+hPo1ftfffyq3deffv5V3/77/Y0VAhBBACIIQAQBiCAAEQQgggDk9hzCldMPc57ehz/981l9fdNzGKtO/352fX5WCEAEAYggABEEIIIARBCACAKQbXMIV6bPA5h2+pzC9HkGn/75XJl6f1YIQAQBiCAAEQQgggBEEIAIApCxOYSn231fhun7PkyfZzA9Z/CtrBCACAIQQQAiCEAEAYggABEEIOYQbjr9vgXTz7/q9Nf3qawQgAgCEEEAIghABAGIIAARBCBjcwjfvk+8us+++zyCVdPnOez2qb9fKwQgggBEEIAIAhBBACIIQAQByLY5hNP3kVet7rNfWd2n373Pv/v603MKn/77/Y0VAhBBACIIQAQBiCAAEQQgggDk9f7UP3Z/udP3+a/snmPg/1khABEEIIIARBCACAIQQQAiCEDG7stw+j759D749D776ecZTH8/V576+7BCACIIQAQBiCAAEQQgggBEEICMzSF8+n0LdnvqPvcp1//093eXFQIQQQAiCEAEAYggABEEIIIA5PYcwtP3iXfPKUz/33+33d/P0897WDX1/VohABEEIIIARBCACAIQQQAiCEC2nYcwvU9+5fR96Cunv/7V73/19U/PcUzPydxlhQBEEIAIAhBBACIIQAQBiCAA2TaHsHsf9vT7LkzPYZiTWPOt17dCACIIQAQBiCAAEQQgggBEEIC83jc3PKf3kaevv9vp72/69X36nMfu+3r8xgoBiCAAEQQgggBEEIAIAhBBALLtPIRV0+cdTJ+rf/o+9+7r777vwulzHFOsEIAIAhBBACIIQAQBiCAAEQQgY3MI0/uwu/exdz//9JzFlen7Xkzfl2N6zuQuKwQgggBEEIAIAhBBACIIQAQByNgcwuo+8e596N3nIex+/PR5DtM+/fPb9fxWCEAEAYggABEEIIIARBCACAKQ13toQ/n0fe7TX9+V08+buPL0179qao7CCgGIIAARBCCCAEQQgAgCEEEAcvs8hKf+3/tPn3/18dP3PZj+/Kc/nyvT15+es/iNFQIQQQAiCEAEAYggABEEIIIAZNt5CKfvk68+/7RP//x2zzlMP/7K1ByHFQIQQQAiCEAEAYggABEEIIIA5PYcwvQ+7LTVferTn3/V6d/ftFO/XysEIIIARBCACAIQQQAiCEAEAcjt+zLs3seePjf/yu599t3/1181fd+Fb7/+LlYIQAQBiCAAEQQgggBEEIAIApDbcwif/n/3q33k6X3m1c//9O/v2+coplghABEEIIIARBCACAIQQQAiCEBuzyFcmd6nv7J7H3/6vILpffTVz+fU+xb8LdO/j99YIQARBCCCAEQQgAgCEEEAIghAts0hXHn6Pvxu03MEp58HcWX6vIHT5zB+Y4UARBCACAIQQQAiCEAEAYggABmbQ3i66TmBVafPEaya/n52X3/X81shABEEIIIARBCACAIQQQAiCEDMIdw0PSew+/q77zux+/1Nzwnsvm/ErvdnhQBEEIAIAhBBACIIQAQBiCAAGZtDePr/8af2if/U6a9v9z799PWn5zjuskIAIghABAGIIAARBCCCAEQQgGybQ9j9f/2n273PPH0ewZXpOYIrp84J7L6+FQIQQQAiCEAEAYggABEEIIIA5PV++sEEwF9jhQBEEIAIAhBBACIIQAQBiCAAEQQgggBEEIAIAhBBACIIQP4Dqd1AK8rDmNoAAAAASUVORK5CYII=
收到字符(AS3代码里打印):
iVBORw0KGgoAAAANSUhEUgAAAQQAAAEECAYAAADOCEoKAAAABHNCSVQICAgIfAhkiAAABVlJREFUeJzt3UuO4zgQQMHyYO5/Zc/uraaghthEUnbE3pZ/eCDANPV6v9/vH4Cfn59/pl8AcA5BACIIQAQBiCAAEQQgggBEEIAIAhBBACIIQAQBiCAA+ffuA1+v1998Hce5+hPo1ftfffyq3deffv5V3/77/Y0VAhBBACIIQAQBiCAAEQQgggDk9hzCldMPc57ehz/981l9fdNzGKtO/352fX5WCEAEAYggABEEIIIARBCACAKQbXMIV6bPA5h2+pzC9HkGn/75XJl6f1YIQAQBiCAAEQQgggBEEIAIApCxOYSn231fhun7PkyfZzA9Z/CtrBCACAIQQQAiCEAEAYggABEEIOYQbjr9vgXTz7/q9Nf3qawQgAgCEEEAIghABAGIIAARBCBjcwjfvk+8us+++zyCVdPnOez2qb9fKwQgggBEEIAIAhBBACIIQAQByLY5hNP3kVet7rNfWd2n373Pv/v603MKn/77/Y0VAhBBACIIQAQBiCAAEQQgggDk9f7UP3Z/udP3+a/snmPg/1khABEEIIIARBCACAIQQQAiCEDG7stw+j759D749D776ecZTH8/V576+7BCACIIQAQBiCAAEQQgggBEEICMzSF8+n0LdnvqPvcp1//093eXFQIQQQAiCEAEAYggABEEIIIA5PYcwtP3iXfPKUz/33+33d/P0897WDX1/VohABEEIIIARBCACAIQQQAiCEC2nYcwvU9+5fR96Cunv/7V73/19U/PcUzPydxlhQBEEIAIAhBBACIIQAQBiCAA2TaHsHsf9vT7LkzPYZiTWPOt17dCACIIQAQBiCAAEQQgggBEEIC83jc3PKf3kaevv9vp72/69X36nMfu+3r8xgoBiCAAEQQgggBEEIAIAhBBALLtPIRV0+cdTJ+rf/o+9+7r777vwulzHFOsEIAIAh
layaNative1.0版本 laya1.7.22版本
我翻了下论坛,好像APP不支持显示base64的图片啊,那请问如何在APP中生成二维码呢?
二次开发中 APP调用JS方法的时候str字符串过长有丢失,请问是否有这个问题呢?请帮忙查看下?
(字符串大概只收到1000个字符左右)
原字符串(在JAVA端打印):
iVBORw0KGgoAAAANSUhEUgAAAQQAAAEECAYAAADOCEoKAAAABHNCSVQICAgIfAhkiAAABVlJREFUeJzt3UuO4zgQQMHyYO5/Zc/uraaghthEUnbE3pZ/eCDANPV6v9/vH4Cfn59/pl8AcA5BACIIQAQBiCAAEQQgggBEEIAIAhBBACIIQAQBiCAA+ffuA1+v1998Hce5+hPo1ftfffyq3deffv5V3/77/Y0VAhBBACIIQAQBiCAAEQQgggDk9hzCldMPc57ehz/981l9fdNzGKtO/352fX5WCEAEAYggABEEIIIARBCACAKQbXMIV6bPA5h2+pzC9HkGn/75XJl6f1YIQAQBiCAAEQQgggBEEIAIApCxOYSn231fhun7PkyfZzA9Z/CtrBCACAIQQQAiCEAEAYggABEEIOYQbjr9vgXTz7/q9Nf3qawQgAgCEEEAIghABAGIIAARBCBjcwjfvk+8us+++zyCVdPnOez2qb9fKwQgggBEEIAIAhBBACIIQAQByLY5hNP3kVet7rNfWd2n373Pv/v603MKn/77/Y0VAhBBACIIQAQBiCAAEQQgggDk9f7UP3Z/udP3+a/snmPg/1khABEEIIIARBCACAIQQQAiCEDG7stw+j759D749D776ecZTH8/V576+7BCACIIQAQBiCAAEQQgggBEEICMzSF8+n0LdnvqPvcp1//093eXFQIQQQAiCEAEAYggABEEIIIA5PYcwtP3iXfPKUz/33+33d/P0897WDX1/VohABEEIIIARBCACAIQQQAiCEC2nYcwvU9+5fR96Cunv/7V73/19U/PcUzPydxlhQBEEIAIAhBBACIIQAQBiCAA2TaHsHsf9vT7LkzPYZiTWPOt17dCACIIQAQBiCAAEQQgggBEEIC83jc3PKf3kaevv9vp72/69X36nMfu+3r8xgoBiCAAEQQgggBEEIAIAhBBALLtPIRV0+cdTJ+rf/o+9+7r777vwulzHFOsEIAIAhBBACIIQAQBiCAAEQQgY3MI0/uwu/exdz//9JzFlen7Xkzfl2N6zuQuKwQgggBEEIAIAhBBACIIQAQByNgcwuo+8e596N3nIex+/PR5DtM+/fPb9fxWCEAEAYggABEEIIIARBCACAKQ13toQ/n0fe7TX9+V08+buPL0179qao7CCgGIIAARBCCCAEQQgAgCEEEAcvs8hKf+3/tPn3/18dP3PZj+/Kc/nyvT15+es/iNFQIQQQAiCEAEAYggABEEIIIAZNt5CKfvk68+/7RP//x2zzlMP/7K1ByHFQIQQQAiCEAEAYggABEEIIIA5PYcwvQ+7LTVferTn3/V6d/ftFO/XysEIIIARBCACAIQQQAiCEAEAcjt+zLs3seePjf/yu599t3/1181fd+Fb7/+LlYIQAQBiCAAEQQgggBEEIAIApDbcwif/n/3q33k6X3m1c//9O/v2+coplghABEEIIIARBCACAIQQQAiCEBuzyFcmd6nv7J7H3/6vILpffTVz+fU+xb8LdO/j99YIQARBCCCAEQQgAgCEEEAIghAts0hXHn6Pvxu03MEp58HcWX6vIHT5zB+Y4UARBCACAIQQQAiCEAEAYggABmbQ3i66TmBVafPEaya/n52X3/X81shABEEIIIARBCACAIQQQAiCEDMIdw0PSew+/q77zux+/1Nzwnsvm/ErvdnhQBEEIAIAhBBACIIQAQBiCAAGZtDePr/8af2if/U6a9v9z799PWn5zjuskIAIghABAGIIAARBCCCAEQQgGybQ9j9f/2n273PPH0ewZXpOYIrp84J7L6+FQIQQQAiCEAEAYggABEEIIIA5PV++sEEwF9jhQBEEIAIAhBBACIIQAQBiCAAEQQgggBEEIAIAhBBACIIQP4Dqd1AK8rDmNoAAAAASUVORK5CYII=
收到字符(AS3代码里打印):
iVBORw0KGgoAAAANSUhEUgAAAQQAAAEECAYAAADOCEoKAAAABHNCSVQICAgIfAhkiAAABVlJREFUeJzt3UuO4zgQQMHyYO5/Zc/uraaghthEUnbE3pZ/eCDANPV6v9/vH4Cfn59/pl8AcA5BACIIQAQBiCAAEQQgggBEEIAIAhBBACIIQAQBiCAA+ffuA1+v1998Hce5+hPo1ftfffyq3deffv5V3/77/Y0VAhBBACIIQAQBiCAAEQQgggDk9hzCldMPc57ehz/981l9fdNzGKtO/352fX5WCEAEAYggABEEIIIARBCACAKQbXMIV6bPA5h2+pzC9HkGn/75XJl6f1YIQAQBiCAAEQQgggBEEIAIApCxOYSn231fhun7PkyfZzA9Z/CtrBCACAIQQQAiCEAEAYggABEEIOYQbjr9vgXTz7/q9Nf3qawQgAgCEEEAIghABAGIIAARBCBjcwjfvk+8us+++zyCVdPnOez2qb9fKwQgggBEEIAIAhBBACIIQAQByLY5hNP3kVet7rNfWd2n373Pv/v603MKn/77/Y0VAhBBACIIQAQBiCAAEQQgggDk9f7UP3Z/udP3+a/snmPg/1khABEEIIIARBCACAIQQQAiCEDG7stw+j759D749D776ecZTH8/V576+7BCACIIQAQBiCAAEQQgggBEEICMzSF8+n0LdnvqPvcp1//093eXFQIQQQAiCEAEAYggABEEIIIA5PYcwtP3iXfPKUz/33+33d/P0897WDX1/VohABEEIIIARBCACAIQQQAiCEC2nYcwvU9+5fR96Cunv/7V73/19U/PcUzPydxlhQBEEIAIAhBBACIIQAQBiCAA2TaHsHsf9vT7LkzPYZiTWPOt17dCACIIQAQBiCAAEQQgggBEEIC83jc3PKf3kaevv9vp72/69X36nMfu+3r8xgoBiCAAEQQgggBEEIAIAhBBALLtPIRV0+cdTJ+rf/o+9+7r777vwulzHFOsEIAIAh
layaNative1.0版本 laya1.7.22版本
我翻了下论坛,好像APP不支持显示base64的图片啊,那请问如何在APP中生成二维码呢?
没有找到相关结果
已邀请:
要回复问题请先登录
1 个回复
Aar0n
赞同来自: