| Author: Mari raj k 08 Oct 2008 | Member Level: Silver | Rating:    Points: 6 |
two ways u can achieve this,
this is the code for converting the image type
Load the file...
Bitmap bm=Bitmap.FromFile("mypic.tiff");
save as jpeg...
bm.Save("mypig.jpg",ImageFormat.JPEG);
1) Save the file to the desired format in the local system first and then upload it,
or
2) Upload the file and then u convert the file as above,
Its better to save in the local system and then upload it
|
| Author: Manindra Upadhyay 08 Oct 2008 | Member Level: Gold | Rating:   Points: 3 |
use this code
System.Drawing.Image ImgPhoto = System.Drawing.Image.FromFile(imagename); ImgPhoto.Save(Server.MapPath(FilePath) + fileName + ".jpeg", ImageFormat.Jpeg); ImgPhoto.Dispose();
|