Wrox Programmer Forums
|
ASP Pro Code Clinic As of Oct 5, 2005, this forum is now locked. No posts have been deleted. Please use "Classic ASP Professional" at: http://p2p.wrox.com/forum.asp?FORUM_ID=56 for discussions similar to the old ASP Pro Code Clinic or one of the other many remaining ASP and ASP.NET forums here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Pro Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 22nd, 2005, 11:12 AM
Authorized User
 
Join Date: Sep 2003
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to zaeem Send a message via Yahoo to zaeem
Default Deleting a Picture on The Server

Hello
This is My 4th message, please responsd. PLZ PLZ PLZ PLZ
I am building online address book sort of thing where members can upload their pictures.
Now when members update their member information along with the picture, the previous picture stays at the server. The picture path is something like” C:\Inetpub\wwwroot\address\pics\me1.jpg”, now tell me by using ASP how can I Delete the previous picture of the member at the server.

Millions of thanx in advance
Zaeem Sherazi


Zaeem Sherazi
__________________
Zaeem Sherazi
 
Old April 22nd, 2005, 11:42 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Instead of asking the same question over and over again, why not try Google?

This brought this up in no time: http://webdevel.blogspot.com/2003/09...-file-asp.html

So, you should use a FileSystemObject and then execute its DeleteFile method.

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old May 6th, 2005, 11:16 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 518
Thanks: 0
Thanked 0 Times in 0 Posts
Default

First delete link/address of picture which will your server table.

then delete picture from your server directory ie

regards.











Similar Threads
Thread Thread Starter Forum Replies Last Post
managing picture using oracle or sql server vedant Oracle 3 January 28th, 2008 08:59 PM
Store an picture in SQL Server ashoka_klt SQL Server 2000 1 October 29th, 2006 11:27 PM
How to insert a Picture in SQL Server using VB 6.0 swadhinm Pro VB Databases 0 September 21st, 2005 06:52 AM
Deleting a Picture on The Server zaeem Classic ASP Professional 1 September 8th, 2005 01:31 AM
Deleting a Picture on The Server zaeem Classic ASP Databases 1 May 6th, 2005 11:32 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.