Click here to Skip to main content
15,888,454 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have created a image test.jpg now i want to save it with a different filename how can i do??
Posted
Comments
joshrduncan2012 21-Sep-12 10:47am    
How are you approaching this? Please elaborate as to what exactly you are trying to do? Is this a part of a program?
Member 9092048 21-Sep-12 10:50am    
yes i am reading image from serial port and saving it as test.jpg.Now i want to save that test.jpg with a different name so how can i do ?
[no name] 21-Sep-12 10:48am    
File->Save As -> different-filename.jpg?
Member 9092048 21-Sep-12 10:54am    
not getting save as option in file
[no name] 21-Sep-12 10:57am    
And what program are you using to create this image file that does not have a Save As under the File menu? The quality of the answers you get are directly proportional to the information you provide.

The better way is to...
C#
System.IO.File.Move(@"C:\From.txt", @"C:\TO.txt");

Check C# File.Move[^] for explanations.

You can also do...
C#
File.Copy(oldFileName, NewFileName);

File.Delete(oldFileName);

Another method - How to rename an image[^].
 
Share this answer
 
Comments
Andrewpeter 21-Sep-12 11:54am    
Very good, vote 5.
Thanks @Andrewpeter...
You can read it (binary option) and after that you save it to another file name. Good luck!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900