Do this to a bytes array in C# when tucking an image into a varchar(max) column in a database. When pulling the gunk back out, convert it (column from SqlDataReader) to a string first and then wrap all of that in a Convert.ToBase64String and make an assignment from that.
No comments:
Post a Comment