Discussion:
Blat v3219 and sending of binary files
(too old to reply)
bushy555@gmail.com [blat]
2018-09-12 23:24:07 UTC
Permalink
Hi everyone,

Have been using BLAT for years; upgraded to the most recent version of v3219 and binary files are being sent as an encoded file under the filename (TEST.XLS and it is still an encoded text file)
I have not changed any parameters, and obviously something has changed over the versions over the years.
I had a very quick look, but nothing blatantly obvious that stands out.
Assume that this would be a very common issue with everyone that has upgraded from early to the current version, and perhaps it is a common question&answer on here over past pages,

Could someone please advise of the necessary parameters required to send a binary file?

Typical command line that I have always used has been : blat c:\tmp\test.xls -u <username> -pw <password> -to [***@address] -base64 -subject "Hi, test.xls is attached"



Cheers,
Dave
'Chip' chip.programmer@att.net [blat]
2018-09-22 14:40:07 UTC
Permalink
Post by ***@gmail.com [blat]
Hi everyone,
Have been using BLAT for years; upgraded to the most recent version of v3219 and binary files are being sent as an encoded file under the filename (TEST.XLS and it is still an encoded text file)
I have not changed any parameters, and obviously something has changed over the versions over the years.
I had a very quick look, but nothing blatantly obvious that stands out.
Assume that this would be a very common issue with everyone that has upgraded from early to the current version, and perhaps it is a common question&answer on here over past pages,
Could someone please advise of the necessary parameters required to send a binary file?
Cheers,
Dave,

Sorry for the long delay seeing this message, I did not notice it in my emails to let it be posted.

Binary files should be sent as attachments, with perhaps a short text message as the body. Which version were you using that seemed to work for you before trying version 3.2.19?

I will run a similar test in a moment with various versions to look for any differences.

Chip
'Chip' chip.programmer@att.net [blat]
2018-09-22 14:54:40 UTC
Permalink
Post by 'Chip' ***@att.net [blat]
Post by ***@gmail.com [blat]
Hi everyone,
Have been using BLAT for years; upgraded to the most recent version of v3219 and binary files are being sent as an encoded file under the filename (TEST.XLS and it is still an encoded text file)
I have not changed any parameters, and obviously something has changed over the versions over the years.
I had a very quick look, but nothing blatantly obvious that stands out.
Assume that this would be a very common issue with everyone that has upgraded from early to the current version, and perhaps it is a common question&answer on here over past pages,
Could someone please advise of the necessary parameters required to send a binary file?
Cheers,
Dave,
Sorry for the long delay seeing this message, I did not notice it in my emails to let it be posted.
Binary files should be sent as attachments, with perhaps a short text message as the body. Which version were you using that seemed to work for you before trying version 3.2.19?
I will run a similar test in a moment with various versions to look for any differences.
Chip
Ok, I ran a test with version 3.2.19 with a spreadsheet, like you listed. Below is the email that was sent, with the middle snipped to keep it short. My command line is also below.

Since Blat relies on Windows registry to get file types, it might be that your registry indicates .xls files are text, or it may not have an entry for file extensions of .xls. Alternatively, there are at least three possible culprits for manipulating your incoming email: your email client program, your company server, and your antivirus program.

Chip

-----------

x64\Release\blat.exe "..\Test_Files\Red Cross donations.xlsx" -base64 -to myself -s "binary file as message body" -p smtp4dev -log R:\blat.log

-----------

Date: Sat, 22 Sep 2018 08:42:21 -0600
From: Chip <***@att.net>
To: Chip <***@att.net>
X-Mailer: Blat v3.2.19, a Win32 SMTP/NNTP mailer http://www.blat.net
Message-ID: <01d45282$Blat.v3.2.19$78017244$***@127.0.0.1>
Subject: binary file as message body
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="=_BlatBoundary-GlY3ppwrV15lZWKPBnwg5"

This is a multi-part message in MIME format.

--=_BlatBoundary-GlY3ppwrV15lZWKPBnwg5
Content-Type: application/octet-stream;
name="Red Cross donations.xlsx"
Content-Disposition: ATTACHMENT;
filename="Red Cross donations.xlsx"
Content-Transfer-Encoding: BASE64

UEsDBBQACAgIAFKQnEkAAAAAAAAAAAAAAAALAAAAX3JlbHMvLnJlbHOtks9KAzEQh+99ipB7d7YV
RGSzvYjQm0h9gJjM/mE3mTAZdX17gwhaqaUHj0l+8803Q5rdEmb1ipxHikZvqlorjI78GHujnw73
6xu9a1fNI85WSiQPY8qq1MRs9CCSbgGyGzDYXFHCWF464mClHLmHZN1ke4RtXV8D/2To9oip9t5o
3vuNVof3hJewqetGh3fkXgJGOdHiV6KQLfcoRi8zvBFPz0RTVaAaTrtsL3f5e04IKNZbseCIcZ24
....
PFy1SCsBAABXBAAAEwAAAAAAAAAAAAAAAACYIAAAW0NvbnRlbnRfVHlwZXNdLnhtbFBLBQYAAAAA
CQAJAD8CAAAEIgAAAAA=

--=_BlatBoundary-GlY3ppwrV15lZWKPBnwg5--

Loading...