Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / ADO.NET / March 2004

Tip: Looking for answers? Try searching our database.

GetSqlBinary to Image ????  VB.NET, BLOB, SQL2000

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bob - 31 Mar 2004 19:17 GMT
I am just trying to load a sql image field into a .Net image variable.
Suggestions?

Dim Im as Image
Im = cType(SqlDataReader.GetSqlBinary(0), image)   'does not work

or

Dim Im As Image
Dim SqlBinValue As SqlBinary
Dim By As Byte()

SqlBinValue = SqlDataReader.GetSqlBinary(0)
By = SqlBinary.op_Explicit(sqlBinValue)

Im = CType(By, Image)        'does not work

Thanks
Bob
William Ryan eMVP - 31 Mar 2004 19:34 GMT
There's a little more to it than that... this may help you
http://www.vbdotnetheaven.com/Code/Sept2003/2175.asp

> I am just trying to load a sql image field into a .Net image variable.
> Suggestions?
[quoted text clipped - 15 lines]
> Thanks
> Bob
Bob - 31 Mar 2004 20:52 GMT
Thanks for the help. I'll check it out.
William Ryan eMVP - 31 Mar 2004 21:10 GMT
Bob:

That should do it for you even though it's in access, but if you have any
problems, let me know and I'lll do what I can.

Cheers,

Bill

> Thanks for the help. I'll check it out.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.