Re: Storing and Retreiving RichTextBox Image Objects in SQL Server Database
From: oj (nospam_ojngo_at_home.com)
Date: 04/07/04
- Next message: oj: "Re: Varbinary Question"
- Previous message: oj: "Re: How to clear connetion to detach database?"
- In reply to: rhutchinson: "Storing and Retreiving RichTextBox Image Objects in SQL Server Database"
- Next in thread: rhutchinson: "Re: Storing and Retreiving RichTextBox Image Objects in SQL Server Database"
- Reply: rhutchinson: "Re: Storing and Retreiving RichTextBox Image Objects in SQL Server Database"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 6 Apr 2004 17:16:11 -0700
Access (Jet) allows embed OLE. Sqlserver doesn't support such. The best you
can do is to store the binaries in an Image column.
See if this helps:
http://support.microsoft.com/?Id=258038
-- -oj http://www.rac4sql.net "rhutchinson" <anonymous@discussions.microsoft.com> wrote in message news:27EDB9B0-A6DE-4C79-8DEB-03649F7795E8@microsoft.com... > Background: I developed a VB6.0 Application which allows a user, via a RichTextBox, to Paste an image (from MS Paint) and store it as part of a record stored in an MS Access Database - in a Memo Field (rs.Fields("fldImage").Value = rtf.object). This also works in the reverse, when retrieving records: "rtf.object = rs.Fields("fldImage").Value" displays the image in the RichTextBox. > > Current problem: Now we want to use a SQL Server Database for the application. EVERYTHING I read about "handling" images refers to the use of FILES but, obviously, we don't have files. > > My question is: Does anyone know what/how the RichTextBox.object is "handled", and how I can emulate the same behavior in our SQL Server Database as I obtain in Access? I have tried every datatype including IMAGE with no luck. I am suspecting that Access is storing something - ?binary file? - and using a pointer, but this is over my head. (I'd like to avoid my user or my code having to create temporary files to Stream in and out of the db - the only option I could think of). > > I'm a bit of a newbie and will need help at a fairly basic level, but ANY feedback is appreciated. > Thanks, Rex
- Next message: oj: "Re: Varbinary Question"
- Previous message: oj: "Re: How to clear connetion to detach database?"
- In reply to: rhutchinson: "Storing and Retreiving RichTextBox Image Objects in SQL Server Database"
- Next in thread: rhutchinson: "Re: Storing and Retreiving RichTextBox Image Objects in SQL Server Database"
- Reply: rhutchinson: "Re: Storing and Retreiving RichTextBox Image Objects in SQL Server Database"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
Loading