Saving any file to in the database, just convert it to a byte array?

Posted by Blankman on Stack Overflow See other posts from Stack Overflow or by Blankman
Published on 2010-04-05T15:58:33Z Indexed on 2010/04/05 16:03 UTC
Read the original article Hit count: 223

Filed under:
|
|

Is converting a file to a byte array the best way to save ANY file format to disk or database var binary column?

So if someone wants to save a .gif or .doc/.docx or .pdf file, can I just convert it to a bytearray UFT8 and save it to the db as a stream of bytes?

© Stack Overflow or respective owner

Related posts about bytes

Related posts about c#