Base64 PDF to PDF File - Barcode doesn't show
I'm writing a Cordova plugin for an Android app. I have a PDF with the barcode in it that I convert to base64. I then convert that base64 string back to PDF and save that file to the downloads folder. The PDF is created fine, however, the barcode shows as a red box/rectangle and not like the original PDF. When I email the PDF to myself and open on Adobe on Windows it shows barcode fine.
I don't know what to do. Below is a snippet of the code:
private void returnDataTest(String message, CallbackContext callbackContext)
requestPermissionTest();
try
//get the url page from the arguments array
URL url = new URL("http://www.reliablesoftjm.com/samplefilesfortesting/DepartureReceiptBarcodeOnly.pdf");
try
InputStream in = new BufferedInputStream(url.openStream());
ByteArrayOutputStream out = new ByteArrayOutputStream();
byte buf = new byte[131072];
int n = 0;
while (-1 != (n = in.read(buf)))
out.write(buf, 0, n);
out.close();
in.close();
byte response = out.toByteArray();
String filename = "tempreceipt.pdf";
FileOutputStream outputStream;
File path = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS);
File file = new File(path, filename);
outputStream = new FileOutputStream(file, false);
outputStream.write(response);
outputStream.flush();
outputStream.close();
catch (Exception e)
e.printStackTrace();
catch (Exception e)
e.printStackTrace();
Here's is a screenshot of the original pdf:
Screenshot of original PDF
Screenshot of base64 converted back to pdf:enter image description here
Also here's the base64 String just in case:
JVBERi0xLjQKJeLjz9MKNCAwIG9iago8PC9UeXBlL1hPYmplY3QvQ29sb3JTcGFjZVsvSW5kZXhlZC9EZXZpY2VSR0IgMjU1KAAAAIAAAACAAICAAAAAgIAAgACAgICAgPwEBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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lRU9GCg==
android pdf base64 barcode
add a comment |
I'm writing a Cordova plugin for an Android app. I have a PDF with the barcode in it that I convert to base64. I then convert that base64 string back to PDF and save that file to the downloads folder. The PDF is created fine, however, the barcode shows as a red box/rectangle and not like the original PDF. When I email the PDF to myself and open on Adobe on Windows it shows barcode fine.
I don't know what to do. Below is a snippet of the code:
private void returnDataTest(String message, CallbackContext callbackContext)
requestPermissionTest();
try
//get the url page from the arguments array
URL url = new URL("http://www.reliablesoftjm.com/samplefilesfortesting/DepartureReceiptBarcodeOnly.pdf");
try
InputStream in = new BufferedInputStream(url.openStream());
ByteArrayOutputStream out = new ByteArrayOutputStream();
byte buf = new byte[131072];
int n = 0;
while (-1 != (n = in.read(buf)))
out.write(buf, 0, n);
out.close();
in.close();
byte response = out.toByteArray();
String filename = "tempreceipt.pdf";
FileOutputStream outputStream;
File path = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS);
File file = new File(path, filename);
outputStream = new FileOutputStream(file, false);
outputStream.write(response);
outputStream.flush();
outputStream.close();
catch (Exception e)
e.printStackTrace();
catch (Exception e)
e.printStackTrace();
Here's is a screenshot of the original pdf:
Screenshot of original PDF
Screenshot of base64 converted back to pdf:enter image description here
Also here's the base64 String just in case:
JVBERi0xLjQKJeLjz9MKNCAwIG9iago8PC9UeXBlL1hPYmplY3QvQ29sb3JTcGFjZVsvSW5kZXhlZC9EZXZpY2VSR0IgMjU1KAAAAIAAAACAAICAAAAAgIAAgACAgICAgPwEBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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CiUlRU9GCg==
android pdf base64 barcode
Please read Under what circumstances may I add “urgent” or other similar phrases to my question, in order to obtain faster answers? - the summary is that this is not an ideal way to address volunteers, and is probably counterproductive to obtaining answers. Please refrain from adding this to your questions.
– halfer
Nov 11 '18 at 10:15
Sorry about that. I did not know
– user1476190
Nov 11 '18 at 23:29
add a comment |
I'm writing a Cordova plugin for an Android app. I have a PDF with the barcode in it that I convert to base64. I then convert that base64 string back to PDF and save that file to the downloads folder. The PDF is created fine, however, the barcode shows as a red box/rectangle and not like the original PDF. When I email the PDF to myself and open on Adobe on Windows it shows barcode fine.
I don't know what to do. Below is a snippet of the code:
private void returnDataTest(String message, CallbackContext callbackContext)
requestPermissionTest();
try
//get the url page from the arguments array
URL url = new URL("http://www.reliablesoftjm.com/samplefilesfortesting/DepartureReceiptBarcodeOnly.pdf");
try
InputStream in = new BufferedInputStream(url.openStream());
ByteArrayOutputStream out = new ByteArrayOutputStream();
byte buf = new byte[131072];
int n = 0;
while (-1 != (n = in.read(buf)))
out.write(buf, 0, n);
out.close();
in.close();
byte response = out.toByteArray();
String filename = "tempreceipt.pdf";
FileOutputStream outputStream;
File path = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS);
File file = new File(path, filename);
outputStream = new FileOutputStream(file, false);
outputStream.write(response);
outputStream.flush();
outputStream.close();
catch (Exception e)
e.printStackTrace();
catch (Exception e)
e.printStackTrace();
Here's is a screenshot of the original pdf:
Screenshot of original PDF
Screenshot of base64 converted back to pdf:enter image description here
Also here's the base64 String just in case:
JVBERi0xLjQKJeLjz9MKNCAwIG9iago8PC9UeXBlL1hPYmplY3QvQ29sb3JTcGFjZVsvSW5kZXhlZC9EZXZpY2VSR0IgMjU1KAAAAIAAAACAAICAAAAAgIAAgACAgICAgPwEBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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Fs8NjJlZjk5NmE2M2ZhMDlmNjE2N2FhN2E3ZjcyOGQyNDM+PDZiMGY2MDMxYWQxNTQ4NGQ1N2U1MzY5NmNjYjkzMmM4Pl0vSW5mbyAxMSAwIFIvU2l6ZSAxMj4+CnN0YXJ0eHJlZgozOTAxCiUlRU9GCg==
android pdf base64 barcode
I'm writing a Cordova plugin for an Android app. I have a PDF with the barcode in it that I convert to base64. I then convert that base64 string back to PDF and save that file to the downloads folder. The PDF is created fine, however, the barcode shows as a red box/rectangle and not like the original PDF. When I email the PDF to myself and open on Adobe on Windows it shows barcode fine.
I don't know what to do. Below is a snippet of the code:
private void returnDataTest(String message, CallbackContext callbackContext)
requestPermissionTest();
try
//get the url page from the arguments array
URL url = new URL("http://www.reliablesoftjm.com/samplefilesfortesting/DepartureReceiptBarcodeOnly.pdf");
try
InputStream in = new BufferedInputStream(url.openStream());
ByteArrayOutputStream out = new ByteArrayOutputStream();
byte buf = new byte[131072];
int n = 0;
while (-1 != (n = in.read(buf)))
out.write(buf, 0, n);
out.close();
in.close();
byte response = out.toByteArray();
String filename = "tempreceipt.pdf";
FileOutputStream outputStream;
File path = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS);
File file = new File(path, filename);
outputStream = new FileOutputStream(file, false);
outputStream.write(response);
outputStream.flush();
outputStream.close();
catch (Exception e)
e.printStackTrace();
catch (Exception e)
e.printStackTrace();
Here's is a screenshot of the original pdf:
Screenshot of original PDF
Screenshot of base64 converted back to pdf:enter image description here
Also here's the base64 String just in case:
JVBERi0xLjQKJeLjz9MKNCAwIG9iago8PC9UeXBlL1hPYmplY3QvQ29sb3JTcGFjZVsvSW5kZXhlZC9EZXZpY2VSR0IgMjU1KAAAAIAAAACAAICAAAAAgIAAgACAgICAgPwEBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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NjJlZjk5NmE2M2ZhMDlmNjE2N2FhN2E3ZjcyOGQyNDM+PDZiMGY2MDMxYWQxNTQ4NGQ1N2U1MzY5NmNjYjkzMmM4Pl0vSW5mbyAxMSAwIFIvU2l6ZSAxMj4+CnN0YXJ0eHJlZgozOTAxCiUlRU9GCg==
android pdf base64 barcode
android pdf base64 barcode
edited Nov 11 '18 at 10:15
halfer
14.4k758110
14.4k758110
asked Nov 11 '18 at 9:47
user1476190user1476190
1
1
Please read Under what circumstances may I add “urgent” or other similar phrases to my question, in order to obtain faster answers? - the summary is that this is not an ideal way to address volunteers, and is probably counterproductive to obtaining answers. Please refrain from adding this to your questions.
– halfer
Nov 11 '18 at 10:15
Sorry about that. I did not know
– user1476190
Nov 11 '18 at 23:29
add a comment |
Please read Under what circumstances may I add “urgent” or other similar phrases to my question, in order to obtain faster answers? - the summary is that this is not an ideal way to address volunteers, and is probably counterproductive to obtaining answers. Please refrain from adding this to your questions.
– halfer
Nov 11 '18 at 10:15
Sorry about that. I did not know
– user1476190
Nov 11 '18 at 23:29
Please read Under what circumstances may I add “urgent” or other similar phrases to my question, in order to obtain faster answers? - the summary is that this is not an ideal way to address volunteers, and is probably counterproductive to obtaining answers. Please refrain from adding this to your questions.
– halfer
Nov 11 '18 at 10:15
Please read Under what circumstances may I add “urgent” or other similar phrases to my question, in order to obtain faster answers? - the summary is that this is not an ideal way to address volunteers, and is probably counterproductive to obtaining answers. Please refrain from adding this to your questions.
– halfer
Nov 11 '18 at 10:15
Sorry about that. I did not know
– user1476190
Nov 11 '18 at 23:29
Sorry about that. I did not know
– user1476190
Nov 11 '18 at 23:29
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53247504%2fbase64-pdf-to-pdf-file-barcode-doesnt-show%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53247504%2fbase64-pdf-to-pdf-file-barcode-doesnt-show%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Please read Under what circumstances may I add “urgent” or other similar phrases to my question, in order to obtain faster answers? - the summary is that this is not an ideal way to address volunteers, and is probably counterproductive to obtaining answers. Please refrain from adding this to your questions.
– halfer
Nov 11 '18 at 10:15
Sorry about that. I did not know
– user1476190
Nov 11 '18 at 23:29