#8

New

filestream.js: Binary writing w/ FSO.

Reported by Neil C. Obremski on Otechski JS · 02/11/2006 05:48:11

Assigned to:
Neil C. Obremski
Priority:
Low
Status:
New
Category:
None
Version:
None

It’d be quite nice for FileStream to not have to use ADODB.Stream for writing binary files. Based on my own experimentation, if I first convert to UTF-8 and then reverse any Windows-1252-unfriendly characters the FSO should write the string as I intend it.

I suppose a good first step will be determining if a localized version of Windows (say: Chinese) still uses Windows-1252. And maybe it would behoove me to write in a decent FileStream BVT to make sure that it can write binary in this manner.

The reason I’d choose FSO over ADODB.Stream is that it doesn’t require everything to be buffered up before it is emptied into a file. FSO will stream it out on the fly which is pretty much a requirement for large outputs like CSV-based reports.

Attachments

No attachment has been uploaded, yet.


Loading comments...