Sujet : Re: (iso Pythonic code) -- if Usenet allowed a small image embedded in a msg, ...
De : ram (at) *nospam* zedat.fu-berlin.de (Stefan Ram)
Groupes : news.software.readers alt.culture.usenetDate : 26. Feb 2024, 12:13:59
Autres entêtes
Organisation : Stefan Ram
Message-ID : <binary-20240226121322@ram.dialup.fu-berlin.de>
References : 1 2 3
Colin Macleod <
cgm@erehwon.invalid> writes:
There's a big difference between encoding gigabyte videos into hundreds
of posts, and including a small picture or graphic *as part of a
message* just as one might do in an email. I think it would be very
helpful to allow the second more generally, with sensible limits on
attachment size.
You can just post a Python program to /generate/ the binary.
For example:
with open( 'output202402261208430100ergahei_tmp_DML.bin', 'wb' )as sink:
sink.write( b'\00\01\02' )
. Now, one can run this Python program and will get the binary file
"output202402261208430100ergahei_tmp_DML.bin" with the three bytes
00, 01, and 02.
But be warned: If you already have a file named
"output202402261208430100ergahei_tmp_DML.bin"
on your hard drive, the above program may *overwrite*
(delete) your existing file. So proceed with care!