02-03-2010 01:27 PM
Am trying to send a MIME encoded JPEG attachment via VMSMail to an MS-Outlook email account. The message arrives with the attachment intact. But clicking on the attachment only brings up Windows Picture Viewer with the message "No Preview Available"
Creation of MIME encoded JPEG
Sending via VMSMail
$MAIL TEST.TXT "firstname.lastname@example.org"
The one clue I have is how VMS MIME encodes the JPEG vs how Outlook encodes the JPEG (I tried sending the JPEG from an Outlook account to an Outlook account and it works fine.)
The encoding of the JPEG via VMS MIME creates
the exact same stream of encoded characters as does the encoding via Outlook, BUT the VMS MIME encoding is 72 characters per line, the Outlook encoding is 76 characters per line.
So, I pulled a switcheroo and took the Outlook encoding and put it into TEST.TXT in place of the VMS MIME encoding, sent the file via VMSMail and BINGO the attachment was viewable in Windows picture viewer when I clicked on it!
Does this ring a bell with anyone?
Any suggestions how to get the VMS MIME encoding to work correctly?
Thanks for your help,
Solved! Go to Solution.
02-03-2010 02:15 PM
This is probably an issue with the attributes of the original (JPG) file.
How does the JPG get to OpenVMS and from where?
What are the record attributes?
How do the mime headers differ from a working file?
Your VMS version is very old (way too old! What are you doing on -1?) Do you have the latest MIME patch.
I've been able to get MIME to work in the past. It tends to be a bit fiddly, making sure the files don't get clobbered along the way.
02-03-2010 08:39 PM
> What are the record attributes?
And can a Web browser running on the VMS
system display the thing?
> [...] characters per line [...]
Shouldn't matter. Uuencode was more
consistent in characters/line than more
modern base64 programs.
It might be comforting to verify that your
MIME program can extract the original data
from its own pile o' MIME, but that's not
much help if the original file is junk.
I've been trying hard never to learn how to
send MIME attachments using VMS MAIL, but I
thought that one needed to use the SFF scheme
to do it (properly -- no extra blank line,
or some such annoyance). On the other hand,
if your e-mail client is able to identify
the attachments, then it may not matter.
02-03-2010 11:37 PM
Not sure what the default is, but ADD/BINARY jpeg-file may change the encoding.
And to do a favour to the recipient, add the miome-type, so it will be image/jpg instead of just binary.
Best to add the mime-type to
jpg, image/jpg, Base64
jpeg, image/jpg, Base64
gif, image/gif, Base64
png, image/png, Base64
pdf, application/pdf, Base64
# CDA Viewer/Ghostscript
ddif, application/ddif, Base64
eps, application/ps, Base64
ps, application/ps, Base64
ps-gz, application/ps, Base64
ps_z, application/ps, Base64
gz, encoding/x-gzip, Base64
z, encoding/x-compress, Base64
zip, application/x-zip-compressed, Base64
tar-gz, encoding/x-gtar, Base64
tgz, encoding/x-gtar, Base64
gtar, application/x-gtar, Base64
tar, application/x-tar, Base64
Then You can omit the /BINARY for the files listed.
02-03-2010 11:59 PM
MIME 1.8 is available for VMS 7.3-1
Should be in one of the patches, check wether your system has all relevant.
02-04-2010 12:59 PM
Thanks for all your help.