Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 23rd, 2005, 10:28 AM
Authorized User
Join Date: Aug 2003
Location: Mil, WI, Saint Barthelemy.
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default displaying an image from file stream into an image

When I call this web service I receive a byte array that contains an image.

The web page that calls the web service contains an Image object.

I need to display the mage. Here is my code. How do I retreive the image from the byte array and insert it into the Image object?

'Call Webservice to pass 3 parameters
            Dim WS As New ImageRetreival.WS1.GetImage
            Dim ImageDB As Byte()
            ImageDB(0) = WS.RetreiveImageDB(userid, patientid, recordid)
            Dim strfn As String = Convert.ToString(DateTime.Now.ToFileTime)
            Dim fs As New FileStream(strfn, FileMode.CreateNew, FileAccess.Write)
            fs.Write(ImageDB, 0, ImageDB.Length)

            Image1 = ????? / This is where I need help

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error At Displaying An Image asters .NET Framework 1.x 0 September 23rd, 2008 04:20 AM
Displaying Image in a gridview cholletivinod ASP.NET 2.0 Basics 0 July 3rd, 2007 12:29 AM
Image not displaying shoakat ASP.NET 2.0 Professional 2 June 22nd, 2007 10:02 AM
Image displaying problem creative_eye VB Databases Basics 0 April 7th, 2006 07:44 AM
problem retreivig image from file stream sanjeet General .NET 0 September 23rd, 2005 04:31 PM

All times are GMT -4. The time now is 06:01 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.