Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 how to convert ntext to jpeg

Author  Topic 

dejjan
Yak Posting Veteran

99 Posts

Posted - 2007-02-13 : 10:29:37
Hello all,
I have one application in my firm written in C# which convert some pictures (jpeg) to datatype ntext and store those data in SQL Server. So we don't keep picture as image datatype but as ntext with converting before.
I don't know C#. Does anybody knows is there some builtin tool, or function, whatever, in C# which convert jpeg to ntext and then send it to SQL Server 2000.

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-02-13 : 11:58:14
In C#, use the .ToByteArray() function and store in IMAGE, not NTEXT, column.


Peter Larsson
Helsingborg, Sweden
Go to Top of Page
   

- Advertisement -