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

  1. #1

    Default created jpegs

    I want to make a file say called mypics.jpg, but the jpg file is really a
    script in aspx that creates the jpeg imeage and returns it as a image file.
    how do i do this in asp .net? thanks! i know you can do it in php.. any
    examples out there?


    Brian Henry Guest

  2. Similar Questions and Discussions

    1. Managing ViewState of a dynamically created Custom Composite Server Control -(where the original is also dynamically created)
      Ok here's my scenario. I have a Custom Composite Server Control (CCSC) consisting of a TextBox, Button & Panel. (And some other code - which I...
    2. jpegs looking bad
      Hi - my jpegs look terrible and I've been very careful not to let them touch any other object or line or anything that might turn them into a gif...
    3. why do jpegs go to 12?
      I know it's kind of an old question, but I really never know whether to stop at 10 or crank it to 12. What's with that? Should I stop at 10? Thanks
    4. #24612 [Opn]: Getimagesize fails on IM 5.4.6 created jpegs
      ID: 24612 User updated by: pekka at studio-on-the dot net Reported By: pekka at studio-on-the dot net Status: Open...
    5. #24612 [NEW]: Getimagesize fails on IM 5.4.6 created jpegs
      From: pekka at studio-on-the dot net Operating system: Windows XP Professional SP1 PHP version: 4.3.2 PHP Bug Type: ...
  3. #2

    Default Re: created jpegs

    You create it as an ASPX page, and set the Response.ContentType to
    "image/jpg" and stream out the image to the browser. The request will be for
    a .aspx file, but the Response.ContneType property will inform the browser
    that it's a JPG.

    --
    HTH,

    Kevin Spencer
    Microsoft MVP
    ..Net Developer
    [url]http://www.takempis.com[/url]
    Big things are made up of
    lots of little things.

    "Brian Henry" <bhenry@reschini.com> wrote in message
    news:%23Xv8k55TDHA.2252@TK2MSFTNGP12.phx.gbl...
    > I want to make a file say called mypics.jpg, but the jpg file is really a
    > script in aspx that creates the jpeg imeage and returns it as a image
    file.
    > how do i do this in asp .net? thanks! i know you can do it in php.. any
    > examples out there?
    >
    >

    Kevin Spencer Guest

  4. #3

    Default Re: created jpegs

    thanks!


    "Kevin Spencer" <kevin@takempis.com> wrote in message
    news:OZn9Aw6TDHA.3712@tk2msftngp13.phx.gbl...
    > You create it as an ASPX page, and set the Response.ContentType to
    > "image/jpg" and stream out the image to the browser. The request will be
    for
    > a .aspx file, but the Response.ContneType property will inform the
    browser
    > that it's a JPG.
    >
    > --
    > HTH,
    >
    > Kevin Spencer
    > Microsoft MVP
    > .Net Developer
    > [url]http://www.takempis.com[/url]
    > Big things are made up of
    > lots of little things.
    >
    > "Brian Henry" <bhenry@reschini.com> wrote in message
    > news:%23Xv8k55TDHA.2252@TK2MSFTNGP12.phx.gbl...
    > > I want to make a file say called mypics.jpg, but the jpg file is really
    a
    > > script in aspx that creates the jpeg imeage and returns it as a image
    > file.
    > > how do i do this in asp .net? thanks! i know you can do it in php.. any
    > > examples out there?
    > >
    > >
    >
    >

    Brian Henry 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