{"action":"created","issue":{"url":"https://api.github.com/repos/pycampers/flutter_pdf_viewer/issues/4","repository_url":"https://api.github.com/repos/pycampers/flutter_pdf_viewer","labels_url":"https://api.github.com/repos/pycampers/flutter_pdf_viewer/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/pycampers/flutter_pdf_viewer/issues/4/comments","events_url":"https://api.github.com/repos/pycampers/flutter_pdf_viewer/issues/4/events","html_url":"https://github.com/pycampers/flutter_pdf_viewer/issues/4","id":358108723,"node_id":"MDU6SXNzdWUzNTgxMDg3MjM=","number":4,"title":"TransactionTooLargeException when calling loadBytes()","user":{"login":"donarn","id":8671707,"node_id":"MDQ6VXNlcjg2NzE3MDc=","avatar_url":"https://avatars0.githubusercontent.com/u/8671707?v=4","gravatar_id":"","url":"https://api.github.com/users/donarn","html_url":"https://github.com/donarn","followers_url":"https://api.github.com/users/donarn/followers","following_url":"https://api.github.com/users/donarn/following{/other_user}","gists_url":"https://api.github.com/users/donarn/gists{/gist_id}","starred_url":"https://api.github.com/users/donarn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donarn/subscriptions","organizations_url":"https://api.github.com/users/donarn/orgs","repos_url":"https://api.github.com/users/donarn/repos","events_url":"https://api.github.com/users/donarn/events{/privacy}","received_events_url":"https://api.github.com/users/donarn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-09-07T15:17:40Z","updated_at":"2018-09-07T15:58:38Z","closed_at":null,"author_association":"NONE","body":"We have an application that will be processing PDFs encoded as base64-encoded strings.\r\nWe plan to display these by calling FlutterPdfViewer.loadBytes(base64Decode(theBase64String).\r\nThis works fine for small, simple pdfs, but we get an exception when trying load larger strings representing larger,more complex PDFs.\r\n\r\nFor example, encoding the 14-page test.pdf file included in the example project to a 1355088-character string (representing 1016315 bytes) and calling loadBytes() on the corresponding byte array throws:\r\n\r\n\r\n09-07 14:20:02.102 1665-1904/? E/ActivityManager: Transaction too large, intent: Intent { cmp=com.pycampers.flutterpdfviewerexample/com.pycampers.flutterpdfviewer.PdfActivity (has extras) }, extras size: 1016492, icicle size: 0\r\n09-07 14:20:02.107 1665-1904/? E/JavaBinder: !!! FAILED BINDER TRANSACTION !!!  (parcel size = 1019812)\r\n09-07 14:20:02.207 1665-1904/? E/ActivityManager: Transaction too large, intent: Intent { cmp=com.pycampers.flutterpdfviewerexample/com.pycampers.flutterpdfviewer.PdfActivity (has extras) }, extras size: 1016492, icicle size: 0\r\n09-07 14:20:02.211 1665-1904/? E/JavaBinder: !!! FAILED BINDER TRANSACTION !!!  (parcel size = 1019812)\r\n09-07 14:20:02.211 1665-1904/? E/ActivityManager: Second failure launching com.pycampers.flutterpdfviewerexample/com.pycampers.flutterpdfviewer.PdfActivity, giving up\r\n    android.os.TransactionTooLargeException: data parcel size 1019812 bytes\r\n        at android.os.BinderProxy.transactNative(Native Method)\r\n        at android.os.BinderProxy.transact(Binder.java:764)\r\n        at android.app.IApplicationThread$Stub$Proxy.scheduleLaunchActivity(IApplicationThread.java:1216)\r\n        at com.android.server.am.ActivityStackSupervisor.realStartActivityLocked(ActivityStackSupervisor.java:1457)\r\n        at com.android.server.am.ActivityStackSupervisor.attachApplicationLocked(ActivityStackSupervisor.java:974)\r\n        at com.android.server.am.ActivityManagerService.attachApplicationLocked(ActivityManagerService.java:7152)\r\n        at com.android.server.am.ActivityManagerService.attachApplication(ActivityManagerService.java:7219)\r\n        at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:291)\r\n        at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:2919)\r\n        at android.os.Binder.execTransact(Binder.java:697)\r\n\r\n\r\nUnfortunately, these PDFs will contain confidential information that cannot rest on the device, so writing the bytes to storage then calling loadFilePath() is not an option.\t\t"},"comment":{"url":"https://api.github.com/repos/pycampers/flutter_pdf_viewer/issues/comments/419485406","html_url":"https://github.com/pycampers/flutter_pdf_viewer/issues/4#issuecomment-419485406","issue_url":"https://api.github.com/repos/pycampers/flutter_pdf_viewer/issues/4","id":419485406,"node_id":"MDEyOklzc3VlQ29tbWVudDQxOTQ4NTQwNg==","user":{"login":"donarn","id":8671707,"node_id":"MDQ6VXNlcjg2NzE3MDc=","avatar_url":"https://avatars0.githubusercontent.com/u/8671707?v=4","gravatar_id":"","url":"https://api.github.com/users/donarn","html_url":"https://github.com/donarn","followers_url":"https://api.github.com/users/donarn/followers","following_url":"https://api.github.com/users/donarn/following{/other_user}","gists_url":"https://api.github.com/users/donarn/gists{/gist_id}","starred_url":"https://api.github.com/users/donarn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donarn/subscriptions","organizations_url":"https://api.github.com/users/donarn/orgs","repos_url":"https://api.github.com/users/donarn/repos","events_url":"https://api.github.com/users/donarn/events{/privacy}","received_events_url":"https://api.github.com/users/donarn/received_events","type":"User","site_admin":false},"created_at":"2018-09-07T15:58:38Z","updated_at":"2018-09-07T15:58:38Z","author_association":"NONE","body":"Thank you for the prompt response and suggested workarounds.\r\nI'll follow up with our project lead to see if temporarily saving password-protected PDFs is an option that will keep us in compliance."}}
{"actor":{"display_login":"donarn"}}