J
Jon
I have a sql table that hold binary files as blobs. Our customers store
attachments for their work orders in them, anything from xml files to zip
files. Normally, these files first exist on the hard drive and are converted
to a byte array and saved to the database in an image type field.
Four the web version of this, our customers will be entering text into a
form and when the form is submitted, the text will be saved to a simple
string variable.
I need to them convert that string var into a byte array to allow it to be
saved to the database, just as if it were a text file.
I know how to do this using an actual file, but my brain is not letting me
make the leap to using a string var, instead of the file.
What's the best way to do this? Oh, and I can't just save it as a varchar in
the db because later on, in the client application, it will be looking to
take the data and create an actual text file on an end user's hard drive.
Thanks
attachments for their work orders in them, anything from xml files to zip
files. Normally, these files first exist on the hard drive and are converted
to a byte array and saved to the database in an image type field.
Four the web version of this, our customers will be entering text into a
form and when the form is submitted, the text will be saved to a simple
string variable.
I need to them convert that string var into a byte array to allow it to be
saved to the database, just as if it were a text file.
I know how to do this using an actual file, but my brain is not letting me
make the leap to using a string var, instead of the file.
What's the best way to do this? Oh, and I can't just save it as a varchar in
the db because later on, in the client application, it will be looking to
take the data and create an actual text file on an end user's hard drive.
Thanks