how can i show processing image

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yogarajan
    New Member
    • Apr 2007
    • 115

    how can i show processing image

    Dear all

    i am uploading one large file it will take time on that time i will show processing image pls help me
  • SvenV
    New Member
    • Oct 2008
    • 50

    #2
    Some questions:
    Where are you uploading what to?
    How are you uploading this?
    Are you talking about a web or windows application?

    As you can see, more information would be handy

    Comment

    • tlhintoq
      Recognized Expert Specialist
      • Mar 2008
      • 3532

      #3
      Help with what exactly?
      How to show an image while uploading?
      How to do the upload?

      Comment

      • artov
        New Member
        • Jul 2008
        • 40

        #4
        If you know the size of the image beforehand, have you thought on using progress bar (in System.Windows. Forms, the ProgressBar class)? Update it each time you get more of the picture.

        Comment

        • tlhintoq
          Recognized Expert Specialist
          • Mar 2008
          • 3532

          #5
          Set the progress bar range to 100.
          Calculate the percentage uploaded.
          Set the progress bar position to that percentage.

          Comment

          • Bassem
            Contributor
            • Dec 2008
            • 344

            #6
            Hi,
            That's easy. Handle the button click event to show an image (loading) that is already on the form but not visible then upload the file then set the image invisible again.
            Code:
                    if (fileUpload1.PostedFile.ContentLength != 0)
                    {
                        Image1.Visible = true;
                        fileUpload1.PostedFile.SaveAs(fileUpload1.PostedFile.FileName);
                        Image1.Visible = false;
                    }
            Where Image1.Visible = false in the design mode or on loading. and the image url for it a suitable image.

            Comment

            • yogarajan
              New Member
              • Apr 2007
              • 115

              #7
              thanks for ur reply

              i am developing web application

              am uploading one file to my server .

              the file size is high that time (uploading time) i will show file is uploading

              it is possible? pls guide me

              Comment

              • tlhintoq
                Recognized Expert Specialist
                • Mar 2008
                • 3532

                #8
                Originally posted by yogarajan
                thanks for ur reply

                i am developing web application

                am uploading one file to my server .

                the file size is high that time (uploading time) i will show file is uploading

                it is possible? pls guide me
                Bassem gave you a technique and code for doing this. Have you tried it?

                Comment

                Working...