473,327 Members | 2,090 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

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?
Nov 17 '05 #1
2 1299
Jos
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.
http://www.aspalliance.com/chrisg/tools/view-image3.asp

Custom controls with this functionality can be found at:
http://www.asp.net/ControlGallery/de...y=8&tabindex=2

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

--

Jos Branders
Nov 17 '05 #2
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" <ws*****@comcast.net> wrote in message
news:00****************************@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?

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Kenneth McDonald | last post by:
Warning: this post may display my utter ignorance of image file format facts. As part of a photo album program I'm working on, I'd like to be able to work with the metadata in JPEG files, which...
10
by: Kristian Nybo | last post by:
Hi, I'm writing a simple image file exporter as part of a school project. To implement my image format of choice I need to work with big-endian bytes, where 'byte' of course means '8 bits', not...
1
by: pradeep | last post by:
hi, Are there any classes available to manipulate media files in CSharp. I want to read a file and manipulate pixel information in the file.( eg. Turn certain pixels to gray scale from color)....
1
by: Will | last post by:
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...
5
by: Charlie King | last post by:
in brief: Can I perform operations like imagesx() or getimagesize() on raw image data as retrieved into a variable from a database, without first saving it as a file? If so, how? If not, what is...
9
by: Serg | last post by:
I have a form with a text input field Is it possible to specify NO border on that field? Obviosuly I tried border="0" but to no avail. Thanks ahead,
0
by: skip | last post by:
I'm unclear how PIL handles multi-frame GIF images. I have such a GIF image in a file, bogus.gif. I can view the individual frames like so (ImageSequence is from the PIL tutorial): ... ...
4
by: Jean-François Michaud | last post by:
Hello, I've been looking at this for a bit now and I don't see what's wrong with the code. Can anybody see a problem with this? Here is an XSLT snippet I use. <xsl:template match="graphic">...
8
by: brainflakes.org | last post by:
Hi guys, I need to manipulate binary data (8 bit) stored in a 2 dimensional array. I've tried various methods (arrays, using a string filled with chr(0), using gd lib) and so far the fastest...
3
by: Cyprus106 | last post by:
Does anybody have any good websites, books, whatever for working with and manipulating images? Topics I need some information on are conversions (to greyscale, from one type to another, etc.), line...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.