RestaurantWeb | Food Ordering Website for Restaurants | Ecommerce library
kandi X-RAY | RestaurantWeb Summary
kandi X-RAY | RestaurantWeb Summary
Food Ordering Website for Restaurants
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of RestaurantWeb
RestaurantWeb Key Features
RestaurantWeb Examples and Code Snippets
Community Discussions
Trending Discussions on RestaurantWeb
QUESTION
I have a profile page where the user can change their profile picture, When the user clicks submit their old profile picture is delete and replace with a the new one. However, when I try and delete the image it gives the error below:
IOException: The process cannot access the file 'C:\Users\Shayan\source\repos\RestaurantWeb\RestaurantWeb\wwwroot\Images\Users\92487709-5b2f-417c-a64f-4661962693cf_imb5ohqzqr511.jpg' because it is being used by another process.
Here is my snippet of code where I add and delete the images:
...ANSWER
Answered 2020-Mar-28 at 19:05Try closing the FileStream
that you're creating.
Edit: Check out this.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install RestaurantWeb
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page