manipulating an image file in asp.net with C#

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default manipulating an image file in asp.net with C#

    I've got a file upload happening to upload an image file
    to the server. During this process I want to also create a
    thumbnail of the image in the same directory, and adjust
    the size of the image if it's too large horizonally or
    vertically. I am using an httpfilescollection to gain
    access to the file I uploaded, but I can't figure out
    where to go from there.

    Since this is in ASP.net I'm out of luck with the graphics
    class in GDI+.

    Any suggestions?
    Will Guest

  2. Similar Questions and Discussions

    1. Manipulating XML File
      Assume you're working with a vendor that doesn't understand web services and implements their version of a web service solution that only returns...
    2. image is set back when another image is pasted in file
      I have a file that when I paste an image on a layer above it, it gets pushed back and winds up behind the next layer. What can cause this to occur...
    3. Help with manipulating a string.
      I've got a multiline text box that will feed the ^M at the end of each line. I want to capture it into a single line (which is done), but how do I...
    4. How To Browse for an image file and save it to image server folder
      I trying to browse for an image file and save it to the server image folder. in other words , upload the picture. I tried html and aspx.net...
    5. how to upload an image selected from html file to flash file?
      Hello, I have one html file and a flash file. In html file, it is functioning like choosing a Tshirt to design, then how to load that Tshirt picture...
  3. #2

    Default Re: manipulating an image file in asp.net with C#

    Will wrote:
    > I've got a file upload happening to upload an image file
    > to the server. During this process I want to also create a
    > thumbnail of the image in the same directory, and adjust
    > the size of the image if it's too large horizonally or
    > vertically. I am using an httpfilescollection to gain
    > access to the file I uploaded, but I can't figure out
    > where to go from there.
    >
    > Since this is in ASP.net I'm out of luck with the graphics
    > class in GDI+.
    >
    > Any suggestions?
    There are plenty of samples of this to be found on the net.

    E.g.
    [url]http://www.aspalliance.com/chrisg/tools/view-image3.asp[/url]

    Custom controls with this functionality can be found at:
    [url]http://www.asp.net/ControlGallery/default.aspx?Category=8&tabindex=2[/url]

    Also try Google with the keywords "asp.net" and "thumbnails".

    --

    Jos Branders


    Jos Guest

  4. #3

    Default Re: manipulating an image file in asp.net with C#

    Why exactly can't you use GDI+ on a server? It's actually easier then on the
    client side as you have complete control over the server (and can guarantee
    that .NET framework and GDI+ is installed).

    Jerry

    "Will" <wswelch@comcast.net> wrote in message
    news:00a501c35f06$1ea38020$a001280a@phx.gbl...
    > I've got a file upload happening to upload an image file
    > to the server. During this process I want to also create a
    > thumbnail of the image in the same directory, and adjust
    > the size of the image if it's too large horizonally or
    > vertically. I am using an httpfilescollection to gain
    > access to the file I uploaded, but I can't figure out
    > where to go from there.
    >
    > Since this is in ASP.net I'm out of luck with the graphics
    > class in GDI+.
    >
    > Any suggestions?

    Jerry III Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139