Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 23rd, 2005, 10:28 AM
Authorized User
 
Join Date: Aug 2003
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)
            fs.Flush()
            fs.Close()




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

Sanjeet
__________________
Sanjeet





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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.