Save RTF with graphics to SQL server

  • Thread starter Thread starter Al
  • Start date Start date
A

Al

Hi,
I am trying to Save a RTF that contains graphics to SQL
server. Doesn't anyone know a VB code to do that?

Thanks

Al
 
RTF is just text with text markup.
As long as the images are EMBEDDED in the RTF you can just write the RTF to
any character-type field in SQL (although the data is bound to be HUGE). If
the image is Linked, then you are screwed. You will have to find the image
via the link and write it into the database (alhtough I usually don't really
recommend keeping image data in a database to be honest).

-Rob Teixeira [MVP]
 
Thanks but i need to save RichTextBox that contiains
embeded graphics to SQL server. when i try to save it to
a chracter type filed I get error. I am looking for a
routine to do that.

Al
 
What error are you getting?
Might also be useful to see the code you are using to input the value to the
database.

-Rob Teixeira [MVP]
 
* said:
Thanks but i need to save RichTextBox that contiains
embeded graphics to SQL server. when i try to save it to
a chracter type filed I get error. I am looking for a
routine to do that.

"Post code!"
 
Back
Top