Web Service: Transfer Binary Data via HTTP

This sample is designed to show how to transfer binary data (images in this case) over a web service.

Featured Highlights

The sample contains two solutions:

Each solution has one project.

Please see the individual ReadMe.htm files for each solution.

Requirements

Requires the Trial or Release version of Visual Studio .NET Professional (or greater).

Running the Sample

Because this example involves both a Windows client application and a Web Service application, its installation is a bit trickier than most samples. The client application, VB.NET How-To Web Service Graphics, includes a Web Reference to the Web Service exposed by the GraphicsServer project. Your goal is to create a new virtual directory named VB.NETHowToGraphicsServer that "points" to the WebService folder that was created when you installed this example.

In order to create the necessary IIS (Internet Information Server) project, follow these steps:

  1. From the Windows Control Panel, Administrative Tools menu, select Internet Information Services.
  2. Within the Internet Information Services applet, expand nodes in the treeview panel on the left, expanding Internet Information Services, your local computer, Web Sites, then Default Web Site.
  3. Right-click on Default Web Site, and select New, then Virtual Directory. Click Next to bypass the Welcome page.
  4. In the Virtual Directory Alias page, enter VB.NETHowToGraphicsServer. Click Next.
  5. In the Web Site Content Directory page, browse to the WebService folder within the sample you've installed, and select the WebService folder. Click Next.
  6. In the Access Permissions page, click Next to accept the default settings.
  7. Click Finish to complete the wizard.

Once you've added the new virtual directory, you should be able to load the  VB.NET How-To Web Service Graphics.sln file, in the Client folder, and then load and run the sample.

Last Update: 7 July 2002