SqueakinSweep
Programmer
This isnt a problem as such, more a desire for a more elegant solution to a problem.
I have a Rich Text Box, and Im able to strip the contents and store it in a SQL Table, as an Image Field.
This is the code I use to do this..
What I would like to do is to skip the step of saving the Richtextbox contents as a file, and hopefully use a stream instead, but Im puzzled as to how to do this.
Sweep
...if it works dont f*** with it
...if its f****ed blame someone else
...if its your fault that its f***ed, say and admit nothing.
I have a Rich Text Box, and Im able to strip the contents and store it in a SQL Table, as an Image Field.
This is the code I use to do this..
Code:
'My Class for SQL->.Net Binary Type Translations
Dim o As New fwClasses.clsGraphics
'Save RTF to Disk File
xrt.SaveFile("temp.rtf")
'Read File to Byte Array
Dim b As Byte() = o.zGetFileasByteArray("temp.rtf")
'Save Image (Id,Name,Binary Data)
Dim iTemp As Integer = osql.zSaveImage(0, "RTFNEW", b)
What I would like to do is to skip the step of saving the Richtextbox contents as a file, and hopefully use a stream instead, but Im puzzled as to how to do this.
Sweep
...if it works dont f*** with it
...if its f****ed blame someone else
...if its your fault that its f***ed, say and admit nothing.