Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > microsoft.public.scripting.vbscript > #12467
| From | "Mayayana" <mayayana@invalid.nospam> |
|---|---|
| Newsgroups | microsoft.public.scripting.vbscript |
| Subject | Re: Using CHRW to speed up writing binary files |
| Date | 2022-10-10 08:06 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <ti11tl$q7v4$1@dont-email.me> (permalink) |
| References | <661f1763-6f55-44ce-8360-ca5f9f99aeb5n@googlegroups.com> |
"Antoni Gual Via" <antonigualvia@gmail.com> wrote > Hello. I'm experimenting on creating bmp files in VBScript https://www.jsware.net/jsware/scrfiles.php5#bints No ADODB needed. Straight Textstream. The only limitation is that it won't work on DBCS systems. (Japanese, Chinese, Korean.) It requires a true ANSI read/write: 1 byte = 1 character. If you start getting into writing two bytes at a time you open yourself up to endless complications. The whole point of a binary file is that it's a byte stream. So any edit that's not an even number of bytes would corrupt your file. It might be OK for BMPs, with their simple header and their even-numbered grid lines, but once you try to touch anything else you'll likely be in trouble.
Back to microsoft.public.scripting.vbscript | Previous | Next — Previous in thread | Next in thread | Find similar
Using CHRW to speed up writing binary files Antoni Gual Via <antonigualvia@gmail.com> - 2022-10-08 09:45 -0700
Re: Using CHRW to speed up writing binary files Antoni Gual Via <antonigualvia@gmail.com> - 2022-10-08 12:19 -0700
Re: Using CHRW to speed up writing binary files JJ <jj4public@outlook.com> - 2022-10-09 20:26 +0700
Re: Using CHRW to speed up writing binary files "Mayayana" <mayayana@invalid.nospam> - 2022-10-10 08:06 -0400
Re: Using CHRW to speed up writing binary files Antoni Gual Via <antonigualvia@gmail.com> - 2022-10-10 08:23 -0700
Re: Using CHRW to speed up writing binary files "Mayayana" <mayayana@invalid.nospam> - 2022-10-10 17:40 -0400
csiph-web