Check this tip to read/write binary files from a disk or read a file from remote server (URL - using http/ftp). This tip contains sample code to create a table with a binary column, get a binary data from a file (image) and store them to a database table, read the binary data from the database and sent the data to a client using ASP Response.BinaryWrite.
Click here for details !