Click here to Skip to main content
15,901,505 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear,

How to compare 2 Images from file folder using asp.net

Note:
image 1 is: user input image
Image 2 is: file folder image

how to compare these two images.
reply me.
By
Posted
Comments
OriginalGriff 3-Apr-12 6:30am    
What kind of comparison do you want? Byte-by byte? Find the object?
You need to be more specific.
Use the "Improve question" widget to edit your question and provide better information.

C#
protected bool IsFileExist(string fileName)
    {
        DirectoryInfo di=new DirectoryInfo (Server.MapPath("ProductThumbnails"));
        FileInfo[] files=di.GetFiles();
        foreach (FileInfo file in files)
        {
            if (file.Name==fileName)
            {
                return true;
            }
        }
        return false;

    }
 
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