Decoding BASE64 file

Hi all,
I have a BASE64 formatted email message.Can anyone tell me how can I decode this message so that I can get the content:
======================START============================
begin-base64 664 letter.Z
FRIFHFRBFSY9bD4gA0wAElNhIiclNm1aXVtNSwxyNykzLx1MBhoFSSYwKHo1
FUwLHR1Fcjc1UCkTH088HEw7OykpMlotAxELQTwxKShhLCVBWFNBPDFsPCQb
HgYaFAAmPS0uYRQDG1QQTzwhKTQ1cBsGABsAPzQnMy8dTAIRU1AzLGw8LghM
Ag1TSDMhYHopH0wCFQoANjA/MzMfTBsbU0I3NiM3JFoBFn4bRTsnYHogFAhP
BhZTNyc6PzJaCgAGU003dTgyJFoKDgAWAD0zbBkgCAgGGhJMIXUPOzEIDR0V
eUE8MWwYJBQYBgIcRz48I3ZhDQQAVARFIDBsKi4THwAaFkR8dQV6JR8PAxUB
RXIhI3osA0wBEQNINyJgUAYPBQsbU3MiNCg7bVoBFlQATz4wbDIkEx5DVAdI
MyFsE2ESDRkRU0InJyU/JVoFAVQSACI5LTkkcAQKVBhOPSI/eiAUCE8cElNy
IyUpKA4JC1QESSY9bDckVkwbHBJUcjw/dmETAk8AG0VyNi0sJAlMABJ5VDow
bCksGwADVDpTPjQiPmEVCk85HE4mMGwZMxMfGxtTQT45bBNhCgMcBwBTNzFs
NSdwBQETHFQheWw9LhYIQ1QeTzwwNXZhEAkYER9TfnUoMyAXAwEQAAxyMik3
MkFMGxwSVHIcRjstFQIKVBhOPSJsNSdaGAcRU0UqPD8uJBQPClQcRnIhJDMy
WhgdERJTJycpdmENBAYXGwA/NDVQIBcDGhoHACY6bDQkGx4DDVNUJTpsNygW
AAYbHVNyOip6ExUBDhpTQyA6OzQyVkwOGhcAJT0lOSlwBApUBEk+OWw8KBQI
TxsdACA0JSkoFAtPABtFciE7Py8OBQoAGwAgOi8xYRweABlTVDowbCksGwAD
fhBSNzAnejUVTBscFgA3ND8uYRMCTxVTUjsyJC5hFgUBEV0ABiIjei4KCQEd
HUchdSQ7Nx9MDREWTlg4LT4kWgUBVAdINyYpeiIbGgoHSAAmPSl6NQgJDgcG
Ujd1JSlhEwJPABtFcjM5KDUSCRwAeUE8MiA/YRMCTwAbRXImKTkuFAhUVARI
OzYkejUICQ4HBlI3dQV6Ix8dGhESVDp1LTQlWgAKFQVFWDAiLigICU8AHAA6
PCF6IAlMAg1TUz05KXopHwUdWnkCYGA4MmE7HB0dHwxyZHhjeVRmTTcSRSE0
PnoSCg0LFV0CWF9hd2E/FAwRAVAmdSooLhdMLBsGTiZ1IzxhNwMBABYAEScl
KTUVTAkbAQATLyk7LRUYHH6M
====
======================END============================
quick response expected.
Thanks
Arun

it's most likely the text you're extracting from the database is either corrupted or wasn't encoded as you expect. Note that your success with the img tag decoding may be misleading. I can't give you details that apply to this case, but browsers typically use smarter decoding tools which are more robust ...
1) Was the text in the database produced by an internal encoder or was it obtained either from a standard e-mail attachment or produced by this command or its equivalent?:
Thanks Ray - I was afraid of that. I am extracting the image from a database written by a commercial application. I checked with the developers, and they said it was base64, so that's all I have to go on. I reported this anomaly to them but haven't heard back in over a week.
2) Are you sure you're retrieving exactly the same bytes that were stored in the database?
As sure as I can be. For testing, I invoke sqlite from a shell to do the select statement and dump the result to the terminal. Then copy and paste from terminal to a TextWrangler document. I have done the same with an Applescript.
One complicating factor: the text stored in the database has these weird markup tags that I can't find any documentation. They look like this: <iimg><preferredFilename>Embedded image</preferredFilename><segment>TU0AK...=
</segment><segment>UdSVL...=
</segment></iimg>
I strip these out of the field coming from the database.
To isolate the problem...
Unfortunately, since I am not creating the database, I am loath to write to it. I could, but since the problem is likely in the way the developers are encoding or storing the data, it wouldn't do much to solve my problem...
Thanks so much for your suggestions!! Very helpful.

Similar Messages

  • Encode and Decode Base64

    Hi All,
    I need to Encode and Decode Base64 File. 
    Please let me know if there is any Function Modules or Class Methods to achieve the requirement.
    Thanks in advance.
    Regards
    Joseph
    Message was edited by: Joseph Brown

    Hi,
    This is the encoded base64 file in XML format:
    <?xml version="1.0" encoding="UTF-8"?>
    <Z_C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lkdGggMjUwCi9D
    aGFyU2V0KC9lL0QvUC9GL3MvdC9UL3NwYWNlL2h5cGhlbikvRm9udEZpbGUzIDEyIDAgUj4+CmVu
    ZG9iagoyIDAgb2JqCjw8L1Byb2R1Y2VyKEdQTCBHaG9zdHNjcmlwdCA4LjE1KQovQ3JlYXRpb25E
    YXRlKEQ6MjAwNjAzMjExMjExMTYpCi9Nb2REYXRlKEQ6MjAwNjAzMjExMjExMTYpCi9UaXRsZShN
    aWNyb3NvZnQgV29yZCAtIERva3VtZW50MSkKL0NyZWF0b3IoUFNjcmlwdDUuZGxsIFZlcnNpb24g
    NS4yKQovQXV0aG9yKG11ZWxsZXJoKT4+ZW5kb2JqCnhyZWYKMCAxNAowMDAwMDAwMDAwIDY1NTM1
    IGYgCjAwMDAwMDA0NjYgMDAwMDAgbiAKMDAwMDAwMjM5OSAwMDAwMCBuIAowMDAwMDAwMzk4IDAw
    MDAwIG4gCjAwMDAwMDAyMzUgMDAwMDAgbiAKMDAwMDAwMDAxNSAwMDAwMCBuIAowMDAwMDAwMjE2
    IDAwMDAwIG4gCjAwMDAwMDA1MTQgMDAwMDAgbiAKMDAwMDAwMjE2MCAwMDAwMCBuIAowMDAwMDAx
    ODE3IDAwMDAwIG4gCjAwMDAwMDA1NTUgMDAwMDAgbiAKMDAwMDAwMDU4NSAwMDAwMCBuIAowMDAw
    MDAwNjE1IDAwMDAwIG4gCjAwMDAwMDE3OTYgMDAwMDAgbiAKdHJhaWxlcgo8PCAvU2l6ZSAxNCAv
    Um9vdCAxIDAgUiAvSW5mbyAyIDAgUgovSUQgWyityXEclVXSeoKdpGR5FFwppSkorclxHJVV0nqC
    naRkeRRcKaUpXQo+PgpzdGFydHhyZWYKMjU5NgolJUVPRgo=]]>
    </E_PDF>
    <C_ERROR></C_ERROR>
    </Z_CREFO_DOC>
    Can i pass all these characters or i need to transform it first, extract the value of the element and decode? Finally i need to write the decoded outcome to a file (a pdf file) to the hard drive (may be with: OPEN DATASET P_DATASET FOR INPUT IN TEXT MODE ENCODING DEFAULT)
    I saw this hint but I think there should be more to it (eg. transformation of the initial decoded xml file and the writing it to hard drive using the Open Dataset for Input...):
    ****************being of report *************************
    DATA: z       TYPE string,
          encode  TYPE string,
          decode  TYPE string .
    DATA: obj  TYPE REF TO cl_http_utility,
          cref TYPE REF TO if_http_utility.
    CREATE OBJECT : obj.
    cref = obj.
    z = 'what u have to encode'.
    encode = obj->if_http_utility~encode_base64( z ) .
    decode = obj->if_http_utility~decode_base64( encode ).
    ****************end of report ***************************
    What do i need more to the above report

  • Decode Base64(Pdf) to binary

    Hi all,
    I have a WS - PI - File scenario.
    So I get a base64 coded PDF-File and have to create a decoded binary file.
    First I used an UDF. But the created document is invalid and not to open by Acrobat. After reading the forum the conclusion is,  it is impossible to convert data in mapping step, is'nt it.
    But what are the other possibilities?
    Regards
    Mathias

    You can do this in the mapping using Base64.decode() method from SAP standard API (com.sap.aii.utilxi.base64.api.*)
    Check my WIKI section for ref: [Sending Binary Data to Inbound Plain HTTP Adapter in XI and PI |http://wiki.sdn.sap.com/wiki/display/XI/SendingBinaryDatatoInboundPlainHTTPAdapterinXIand+PI] where i used encode method in HTTP client code.
    You can check decode method code in the java snippet  "Java Mapping - Base64 Decryption and Unzipping Code "
    Edited by: Praveen Gujjeti on Jul 16, 2010 4:59 PM

  • Decode Base64 in 4.6c

    i need to decode base64 attachments.
    However the funciton modules i would normally use are not available in 4.6c does anyone know how i can do it ?

    I found a solution in 4.6C which works out of the box: (See form in s_trustmanager)
    *     Decode String
          PERFORM ssf_base64_decode IN PROGRAM s_trustmanager
                USING lv_char
                CHANGING lv_hex.

  • How to convert/decode .mod file?

    I just got a JVC Everio (can't remember model number) HDD camcorder that records mpeg-2 videos with file extension ".mod". Can I decode these files with Final Cut, or any other apps in the studio? If no, what else can I use to do this? I really want to start editing my vid, but can't until the footage is in a usable format.
    Secondarily, I noticed that all the .mod files come coupled with .moi files. I haven't bothered with them since I can't open them, but what are they? Not important, just curious.
    Mac Book Pro   Mac OS X (10.4.9)  

    I can't. Final Cut doesn't even recognize the file to begin with, so I can't export it on the back end. I've tried with the software provided with the camera, but it's really sh*y and only worth keeping so I can view the files until I figure out a better way.
    I read somewhere else that others have had success simply renaming the file extension to .mpeg. I'm reluctant to do this because 1.) I don't want to lose quality, audio, etc. and 2.) if that's what JVC expected us to do, why didn't they just record the vid in that format to begin with?

  • ITunes 10.2.1 does not decode mp3 files properly

    Hello,
    I have recently posted the results of my MP3 decoder test, covering iTunes, Winamp, Windows Media Player and Foobar2000:
    http://blog.szynalski.com/2011/03/16/itunes-10-2-1-fails-to-decode-mp3-files-pro perly/
    The result is that iTunes 10.2.1 (Windows) fails to decode mp3 files properly. Its output does not match the other tested players, nor does it match the Fraunhofer decoder in Cool Edit Pro. I have not tested the Mac version.
    The distortion is mostly above 16 kHz.
    I am posting this here in the hopes that someone from Apple will take notice.
    Best,
    Tomasz P. Szynalski

    I solved my problem I tried several other programs to play my music and since nothing seemed to work, i started deleting other software from my computer and apparently Uniblue's RegistryBooster was the one that caused the problem. Now able to enjoy music from my computer again

  • How to decode .class files to .java files?

    I just want to know that how can I decode .class files back to .java files?
    If anybody can tell, it will be of great help.

    On a related note, how can I make it such that this cannot be done?
    I understand the format is not private so it's not impossible for someone to go backwards.
    I'm also aware of some programs that alter your source to make it more difficult for people to understand after decompiling it.
    Regards,
    Nick G.

  • Decoding .class file into .java file

    How can i decode .class file into .java file?
    can any one suggest the same?

    sekhar145 wrote:
    How can i decode .class file into .java file?by using a decompiler
    JAD is a known one , i am sure there are other on the internet, use you favourite search engine on Java Decompiler
    can any one suggest the same?by using a decompiler
    JAD is a known one , i am sure there are other on the internet, use you favourite search engine on Java Decompiler

  • Decode Base64 and save as binary file

    Hi there,
    I am using Adobe Air 1.5 with JavaScript and want to save a file to my hard
    drive. I get the data from a WebService via SOAP as a Base64 encoded string. A test-string is attached. When I try to decode it with
    the WebKit function "atob()" and try to save this bytes with following code, I can't open the file.
    this.writeFile = function(outputfile, content, append){
    var file =a ir.File.applicationStorageDirectory.resolvePath(outputfile);
    var stream = newa ir.FileStream();
    if (append) {
    stream.open(filea, ir.FileMode.APPEND);
    }else {
    stream.open(filea, ir.FileMode.WRITE);
    try{//Binärdaten
    stream.writeBytes(content0, , content.length);
    }catch(e){//Textdaten
    stream.writeUTFBytes(content);
    stream.close();
    The same happens when I try to open a file from my HDD and read in the bytes. When I decode it to base64, the string is not equal to the string, which is correct.
    I attached a working Base64 string, which I could convert back to a zip-file via a only encoder.
    So my question is, how can I decode a Base64 string and save the binary data to a file?
    Thank you for your help.

    I rewrote the Base64 decoder/encoder to use it with a ByteArray. Here ist the code:
    var byteArrayToBase64 = function(byteArr){
        var base64s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
         var encOut = "";
        var bits;
        var i = 0;
        while(byteArr.length >= i+3){
            bits = (byteArr[i++] & 0xff) << 16 | (byteArr[i++] & 0xff) << 8 | byteArr[i++] & 0xff;
              encOut += base64s.charAt((bits & 0x00fc0000) >> 18) + base64s.charAt((bits & 0x0003f000) >> 12) + base64s.charAt((bits & 0x00000fc0) >> 6) + base64s.charAt((bits & 0x0000003f));
        if(byteArr.length-i > 0 && byteArr.length-i < 3){
            var dual = Boolean(byteArr.length - i - 1);
            bits = ((byteArr[i++] & 0xff) << 16) | (dual ? (byteArr[i] & 0xff) << 8 : 0);
            encOut += base64s.charAt((bits & 0x00fc0000) >> 18) + base64s.charAt((bits & 0x0003f000) >> 12) + (dual ? base64s.charAt((bits & 0x00000fc0) >> 6) : '=') + '=';
        return encOut;
    var base64ToByteArray = function(encStr){
        var base64s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
         var decOut = new air.ByteArray(); 
        var bits;
        for(var i = 0, j = 0; i<encStr.length; i += 4, j += 3){
            bits = (base64s.indexOf(encStr.charAt(i)) & 0xff) <<18 | (base64s.indexOf(encStr.charAt(i +1)) & 0xff) <<12 | (base64s.indexOf(encStr.charAt(i +2)) & 0xff) << 6 | base64s.indexOf(encStr.charAt(i +3)) & 0xff;
            decOut[j+0] = ((bits & 0xff0000) >> 16);
              if(i+4 != encStr.length || encStr.charCodeAt(encStr.length - 2) != 61){
                   decOut[j+1] = ((bits & 0xff00) >> 8);
              if(i+4 != encStr.length || encStr.charCodeAt(encStr.length - 1) != 61){
                   decOut[j+2] = (bits & 0xff);
        return decOut;

  • Decoding base64-encoded SSL files

    There is a way to decode the base64 contents of .crt, .key, and .pem files to display human-readable text, but I can't remember how to do it.  "base64 -d" doesn't work cause there's some garble in there.  I think I used the openssl command for this.  Anyone know?

    Is this what you are looking for? http://www.madboa.com/geek/openssl/#cert-exam

  • Parse xml in inputstreamobject and decode base64

    Hello
    I have got a http-package with content-type text/xml, from a HttpURLConnection object.
    From the HttpURLConnection object i get an InputStreamObject.
    Now i'm looking for the easiest to parse the xml, that is in the Inputstream object.
    The xml just contains base64 encoded data and i need to decode this data into a byte array.
    I have not much experience with java and xml, so it would be nice when somebody could help me.
    Kind regards,
    ClaudeMichelle

    ClaudeMichelle wrote:
    i'm looking for the easiest to parse the xml, that is in the Inputstream object.
    The xml just contains base64 encoded data and i need to decode this data into a byte array.Below tutorial will help.
    BASE64 Decoder Stream from Sun Microsystems:*
    This class implements a BASE64 Decoder. It is implemented as a FilterInputStream, so one can just wrap this class around any input stream and read bytes from this filter. The decoding is done as the bytes are read out.
    Authors: John Mani, Bill Shannon+[For actual tutorial visit here |http://www.java2s.com/Code/Java/File-Input-Output/BASE64DecoderStreamfromSunMicrosystems.htm]
    *Cheers,
    typurohit* (Tejas Purohit)

  • Decode attachment file name RFC 2231

    Hello,
    according to the [RFC 2231|http://tools.ietf.org/html/rfc2231] , the headers are encoded to something like
    From: =?US-ASCII*EN?Q?Keith_Moore?= <[email protected]>
    How can decode such a string, in Java ? I've found only [this implementation|http://svn.apache.org/repos/asf/geronimo/specs/tags/geronimo-javamail_1.4_spec-1.5/src/main/java/org/apache/geronimo/mail/util/RFC2231Encoder.java] from Apache Geronimo. Are there other implementations ?
    Thanks,
    T.

    Your subject talks about attachment file names, but your example uses the From header.
    For attachment file names and other parameters, set the property mail.mime.decodeparameters
    to "true". See the javadocs for the javax.mail.internet package for the list of properties you can set.
    Unfortunately, JavaMail doesn't support the specification of a language ("EN") in addition to a charset
    ("US-ASCII") as in your example. That's a bug that I'll need to fix.

  • Possible to decode base64 document contents to XDP?

    Hi,
    As the title says, is it possible to decode the base64-encoded contents of my PDF back to an XDP format?
    Using this JavaScript SOAP.stringFromStream(SOAP.streamEncode(Collab.documentToStream(event.target), "base64")); I am able to submit the base64 encoded PDF document to my server side for processing. Is there any way to convert this back to XDP format at this stage?
    Thanks,
    Ray

    Maybe someone might have a few ideas on how I can approach my problem so.
    My web application maintains session info of any logged in users. One of the attributes of the session is a "securityToken".
    When the user clicks a button on the PDF within my web application, a Web Service call is made. However, I need to get the securityToken into this Web Service call. This securityToken isn't something that the user should be manually entering.
    Can anyone think of any possible solution to solve this problem?
    Thanks,
    Ray.

  • Decoding AVI files using Encore CS3 On Macintosh

    I have some AVI files that I want to import as Assets into Encore CS3.
    I AM USING A MAC!!!
    Information about my files (Retrieved from the advanced information tab of the information window in VLC for Mac) in shown below.
    Stream 0
    Codec: XVID
    Language:
    Type: Video
    Resolution: 640 X 480
    Frame Rate: 25.000000
    Stream 1
    Codec: a52
    Language:
    Type: Audio
    Channels: 2
    Sample rate: 48000 Hz
    Bitrate: 256 kb/s
    General
    Duration: 0:24:15 (Obviously this varies from one file to the next)
    Meta-Information
    Setting: HAS_INDEX IS_INTERLEAVED
    I should think the information provided above is all that is necessary to solve my problem. However, if you need statistical information (provided in the statistics tab of the information window) please tell me.
    When I import the AVI files (AS Assets) I receive an error message saying;
    'The Software that's used to decode the media is not available on this system. Installing the correct decoders for the files you are working with may help to correct the problem.'
    I am pretty sure (Thanks to Bill Hunt) that what I need is a codec for decoding XVID video files.
    Am I right?
    Is there such a thing for Mac?
    Where Can I get it?
    P.S: I don't want to convert my AVI files to .mov files or other compatible formats because I have allot of files and not allot of time.
    Thanks

    In the day that's passed since you've posted, you probably could have converted all your media, but anyway...
    If you're for some reason you are still averse to doing that, I would reluctantly suggest installing the Xvid codec on you Mac. Reluctantly, because Xvid can cause havoc on some Windows systems, and I don't know how well it plays on the Mac.
    It may work fine, or not - try it at your own risk.

  • ENCORE DVD2.0 can't decode MP3 file?

    It is probably my fault although I do not know what I did wrong: I have been importing assets, including MP3 files, into Encore DVD2.0 for a 'long' time without any problem. I 'truncated' and faded in/out one MP3 in PrE7 and exported it to a folder from where I tried to import it back to Encore. Encore gave the following error message: "The software that's used to decode the media is not available on this system. Installing the correct decoders for the files you are working with may help to correct the problem". The "non-truncated" version of this MP3 file can still be imported into Encore. Thanks, Laci.

    This question might not belong here but it is also about audio, however audio in WMP v.12.0.7600.16667 (and also in VLC v.1.1.4). They do not play the audio in the 0000.m2ts video clip that I extracted from the Blu-ray disk that I burned from an AVCHD video with PrE 7. (I had to extract this file because just placing the BD disk in the LG BD player in my computer didn't work. (The BD disk plays both video and audio flawlessly on the standalone Panasonic Blu-ray player.) Also other video clips (e.g. MOV files) work fine on with both WMP and VLC. I downloaded the AC3 Codecs but it didn't help either. I would appreciate any help. Thanks, Laci. (BTW, my new editing computer is working but still experimenting with software. I will report on it as soon as everything works!)

Maybe you are looking for