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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
Have you missed the -file parameter to uuencode::decode?
set t1 [uuencode::decode -file _20080616174650.uue]
Regards,
Neil.