Groups | Blog | Home
all groups > inetserver asp general > july 2004 >

inetserver asp general : Binary file IO



Aaron [SQL Server MVP]
7/7/2004 5:50:42 AM
http://www.aspfaq.com/5003

--
http://www.aspfaq.com/
(Reverse address to reply.)

[quoted text, click to view]

Agoston Bejo
7/7/2004 10:50:42 AM
Hi,
What I would like to do is load a file's contents from a file on the server
and put the contents

into a record in a database. For this I need to load the contents in binary
format into a

variable. Anywhere I looked, I've only found text I/O in ASP.
(FileSystemObject and TextStream).
How can I load any kinds of file into a byte array? Or is it enough to load
it as a text stream

and then treat the loaded string as a byte array?

Thx,
Gus

AddThis Social Bookmark Button