473,383 Members | 1,918 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,383 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 1301
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
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.