Hello, everyone
This is kind of a big project (what I'm posting here is only a very small part), so any suggestions on different approaches in what I need to do would be greatly appreciated!
I have a Sub in a VB.NET 2005 Windows form that, among other things, copies an email's attachment(s) to a drive folder. Then the location of the attachment is saved as text (x:\Attachments\filename.doc) in a SQL Server 2000 database table. This table is then shown in a DataGridView.
This is currently done using Access and VBA. The file is saved as an OLE image datatype, which I currently have absolutely no experience working with (but that's about to change..) in the SQL table. I'm converting this over to VB.NET and all SQL tables.
My supervisor now wants me to provide a way for the user to view that attachment (image datatype that is saved in the table) from within a Windows form.
Regardless of how this is done, the end result must be that the file is of the image data type in the table. Due to the current database structure this cannot be changed (however I will have the opportunity to change that in the future). Also the user has to be able to view the attachments from within a Windows form.
Can anyone provide any suggestions on where to start? As I said, I don't know anything about image datatypes, and the little reading I've done on them so far reveals that images are dealt with differently.
Thanks for your help!
__________________
This is kind of a big project (what I'm posting here is only a very small part), so any suggestions on different approaches in what I need to do would be greatly appreciated!
I have a Sub in a VB.NET 2005 Windows form that, among other things, copies an email's attachment(s) to a drive folder. Then the location of the attachment is saved as text (x:\Attachments\filename.doc) in a SQL Server 2000 database table. This table is then shown in a DataGridView.
This is currently done using Access and VBA. The file is saved as an OLE image datatype, which I currently have absolutely no experience working with (but that's about to change..) in the SQL table. I'm converting this over to VB.NET and all SQL tables.
My supervisor now wants me to provide a way for the user to view that attachment (image datatype that is saved in the table) from within a Windows form.
Regardless of how this is done, the end result must be that the file is of the image data type in the table. Due to the current database structure this cannot be changed (however I will have the opportunity to change that in the future). Also the user has to be able to view the attachments from within a Windows form.
Can anyone provide any suggestions on where to start? As I said, I don't know anything about image datatypes, and the little reading I've done on them so far reveals that images are dealt with differently.
Thanks for your help!
__________________