!BAD!BAD field

Scotte Meredith spomacguy at gmail.com
Fri Mar 18 16:08:58 UTC 2022


We have a winner. I initialized binary var to #NULL. When I take that out it works fine.

Glad you noticed that.


> On Mar 16, 2022, at 4:33 PM, Grzegorz (Greg) Pasternak <gpasternak at cogeco.ca <mailto:gpasternak at cogeco.ca>> wrote:
> 
> I have seen this lately.
> The problem was that I was initializing my binary var with ''
> 
> When I removed this from the initial value field then it started to work.
> 
> Grzegorz (Greg) Pasternak
> 
> 
> 
> 
> 
>> On Mar 16, 2022, at 6:47 PM, Scotte Meredith <spomacguy at gmail.com <mailto:spomacguy at gmail.com>> wrote:
>> 
>> I have an odd problem that has popped up.
>> 
>> I'm putting together an email to send out using the SMTP Worker.
>> 
>> It properly reads the file into ibnPDF. I can view the data and it looks OK.
>> 
>> When I add it to the ilMimeList, the lBinData columns shows !BAD!BAD....
>> 
>> Earlier, it was not doing this and the email was sending out with the PDF attachment. Now it's not and I don't see the reason why.
>> 
>> I've tried both with lEncoding having a value and leaving it blank.
>> 
>> Has anyone seen this? Any ideas?
>> 
>> 
>> Do ilMimeList.$define(lLevel,lContentType,lContentSubtype,lFilename,lCharData,lBinData,lCharset,lEncoding,lDisposition)
>> 
>> Do ioFileOps.$openfile(ilAttachments.path,kTrue)
>> Do ioFileOps.$readfile(ibnPDF)
>> Do ioFileOps.$closefile()
>> Do ioMimeTypes.$getMimeTypes(lcExtension,lcType,lcSubType)
>> Do ilMimeList.$add(lnLevel,lcType,lcSubType,icDocumentName,,ibnPDF,'iso-8859-1','base64')
>> 
>> 
>> Scotte Meredith
>> spomacguy at gmail.com <mailto:spomacguy at gmail.com>
>> 509/998-0991
>> 
>> 
>> 
>> 
>> _____________________________________________________________
>> Manage your list subscriptions at https://lists.omnis-dev.com <https://lists.omnis-dev.com/>
>> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com <mailto:omnisdev-en at lists.omnis-dev.com> 
> 



Scotte Meredith
spomacguy at gmail.com <mailto:spomacguy at gmail.com>
509/998-0991






More information about the omnisdev-en mailing list