SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    May 2007
    Posts
    74
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    show picture in a asp net page

    hi all:

    we have a system written in PHP, and one of service the system offers is return a random picture.

    now, my dot net c# code able to call that service and i have stored that random picture in a C# string, my question what is asp net's way to display that picture.

    in PHP , i can use header('content-type :image/gif'), then use GD function
    imagecreatefromstring($pictureString) to show picture in a web page.

    regards.

  2. #2
    SitePoint Zealot
    Join Date
    Dec 2004
    Location
    canada
    Posts
    186
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    System.Drawing is what you need. Its like the GD library but better lol

    http://msdn2.microsoft.com/en-us/lib...ing.image.aspx

    Theres also the System.Drawing.Imaging (check that out also, if you have trouble navigating through msdn, reply and ill give you the link)

  3. #3
    SitePoint Enthusiast
    Join Date
    May 2007
    Posts
    74
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks for reply.

    i have implements a http handler class instead, seems like implements IHttpHandler is asp net way to process differerent http request in same page.

    regards


Bookmarks

Posting Permissions

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