Menu

base64 uuencode issue

Help
2008-06-17
2013-05-30
  • Roman Schwartz

    Roman Schwartz - 2008-06-17

    Hello,

    I'm using the version 1.10 of tcllib. I tried to use decode in the base64 module (package uuencode 1.1.4), but this gives me an error. I have a pdf uuencoded. After decoding and and when trying to open the pdf file with Adobe Reader I get an error message, that the pdf is broken and invalid. - A uudecode using an exe works fine. If required I will provide the uuencoded file. Here my script:

    set t1 [uuencode::decode _20080616174650.uue]
    set fh [open abc.pdf w]
    puts $fh $t1
    close $fh

    Is there any fix, or am I doing something wrong? Many thanks for help.
    Roman

     
    • Neil Hampton

      Neil Hampton - 2008-07-09

      Have you missed the -file parameter to uuencode::decode?

      set t1 [uuencode::decode -file _20080616174650.uue]

      Regards,
      Neil.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.