Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Base64 Encoding leaving out 2-3 characters off of encoded string

    Help wanted · · · – – – · · ·
    2
    2
    322
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Joe Miserendino
      Joe Miserendino last edited by

      I create HTML files in Notepad++ that are then converted to Base64 encoded strings and are then loaded to a database. Since switching to the new(er) version I’m noticing errors on the encoded strings - it seems like anywhere from 1 to 3 character are missing. This causes an issue downstream as the encoded file is supposed to be translated back to a webpage on the fly. With the string incomplete the HTML opens as a blank window.

      Running Notepad++ 7.7.1

      1 Reply Last reply Reply Quote 0
      • PeterJones
        PeterJones last edited by

        @Joe-Miserendino said:

        it seems like anywhere from 1 to 3 character are missing.

        Hmm, I haven’t seen that. Do you have some example text that shows the problem for you? either real text – or, if that’s too proprietary to share, make up some dummy text. if so, please include the example text, as well as the base64 that it becomes. Use the formatting described in the boilerplate below, so that we are sure to be using the same text that you do.

        Thanks for your Notepad++ version. Are you using 32-bit or 64-bit? (? > Debug Info > Copy debug info into clipboard is the easiest way to grab that and other information that will help us replicate (or counter-example) your experience.) I assume you used Plugins > MIME Tools to do the encoding: what does Plugins > MIME Tools > About say the version is?

        -----

        This forum is formatted using Markdown, with a help link buried on the little grey ? in the COMPOSE window/pane when writing your post. For more about how to use Markdown in this forum, please see @Scott-Sumner’s post in the “how to markdown code on this forum” topic, and my updates near the end. It is very important that you use these formatting tips – using single backtick marks around small snippets, and using code-quoting for pasting multiple lines from your example data files – because otherwise, the forum will change normal quotes ("") to curly “smart” quotes (“”), will change hyphens to dashes, will sometimes hide asterisks (or if your text is c:\folder\*.txt, it will show up as c:\folder*.txt, missing the backslash). If you want to clearly communicate your text data to us, you need to properly format it.

        1 Reply Last reply Reply Quote 1
        • First post
          Last post
        Copyright © 2014 NodeBB Forums | Contributors