CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2002
    Location
    Oklahoma
    Posts
    231

    Return Raw Image from WCF

    I have a webservice and by exposing get/put handlers, i can return raw image bytes of an image to the browser...i need to implement something similar using WCF...does anyone know of any samples of how to do this?

    thanks

  2. #2
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: Return Raw Image from WCF

    If you haven't done much with WCF, I would suggest starting with one of the msdn WCF samples and then modify it to return the byte array.

    Once you get that working, then create a new WCF service from scratch (i.e. from the new project wizard).

    If at all possible, code this up using VS2008 (instead of VS2005) as the WCF support for 2008 is better.

  3. #3
    Join Date
    Jan 2002
    Location
    Oklahoma
    Posts
    231

    Re: Return Raw Image from WCF

    Thanks for the advice...I will do so.

  4. #4
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: Return Raw Image from WCF

    If you run into issues, please post back.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured