ad esempioOriginariamente inviato da cipcip
...e per salvare il file sul server anziche sull oschermo?
però non puoi sovrascrivere l'immagine originale, devi salvarla con un nome diverso e poi cancellarlacodice:Dim miniaturabmp as New System.Drawing.Bitmap(bmp, width, height) try if newImg.EndsWith(".jpg") Then miniaturabmp.Save(Server.MapPath("pippo.jpg"), System.Drawing.Imaging.ImageFormat.Jpeg) else response.Write("solo file .jpg") end if catch response.Write("errore") end try

Rispondi quotando