Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. file download problem

file download problem

Scheduled Pinned Locked Moved ASP.NET
helptutorial
7 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    lakshmichawala
    wrote on last edited by
    #1

    iam downloadin file which has arabic file name with a length more than 60 characters in arabic when i click on download the file name is showing ...and arabic file name and while saving the complete file name is comming.how to solve this problem

    S 1 Reply Last reply
    0
    • L lakshmichawala

      iam downloadin file which has arabic file name with a length more than 60 characters in arabic when i click on download the file name is showing ...and arabic file name and while saving the complete file name is comming.how to solve this problem

      S Offline
      S Offline
      SeMartens
      wrote on last edited by
      #2

      Sorry, didn't get you. Could you describe your problem more detailed? What do you want to achieve?

      It's not a bug, it's a feature! Check out my CodeProject article Permission-by-aspect. Me in Softwareland.

      L 1 Reply Last reply
      0
      • S SeMartens

        Sorry, didn't get you. Could you describe your problem more detailed? What do you want to achieve?

        It's not a bug, it's a feature! Check out my CodeProject article Permission-by-aspect. Me in Softwareland.

        L Offline
        L Offline
        lakshmichawala
        wrote on last edited by
        #3

        hi thanks for ur reply My problem is iam having a arabic file with large file name like this شش شششش شش شششش شش شششش شش شششش.doc when iam trying to download this file using the dowload code in file download popup iam able to see only few characters of the file name and while saving iam not getting the exact file name wat i download above how to solve this problem

        S 1 Reply Last reply
        0
        • L lakshmichawala

          hi thanks for ur reply My problem is iam having a arabic file with large file name like this شش شششش شش شششش شش شششش شش شششش.doc when iam trying to download this file using the dowload code in file download popup iam able to see only few characters of the file name and while saving iam not getting the exact file name wat i download above how to solve this problem

          S Offline
          S Offline
          SeMartens
          wrote on last edited by
          #4

          Do you use the default file downloader or a third component party? You could post the code where you download the file, so maybe we can find the issue there. I'm afraid that it is an encoding problem, but not really sure. Did you try to download the file without your app, just by browsing to the file with your browser?

          It's not a bug, it's a feature! Check out my CodeProject article Permission-by-aspect. Me in Softwareland.

          L 1 Reply Last reply
          0
          • S SeMartens

            Do you use the default file downloader or a third component party? You could post the code where you download the file, so maybe we can find the issue there. I'm afraid that it is an encoding problem, but not really sure. Did you try to download the file without your app, just by browsing to the file with your browser?

            It's not a bug, it's a feature! Check out my CodeProject article Permission-by-aspect. Me in Softwareland.

            L Offline
            L Offline
            lakshmichawala
            wrote on last edited by
            #5

            here file.name contains that arabic file name with a long name characters. Response.AddHeader("content-disposition", "attachment; filename=" & Server.UrlPathEncode(file.Name)) Response.AddHeader("Content-Length", file.Length.ToString()) Response.ContentType = type ' "application/octet-stream" Response.WriteFile(file.FullName) Response.End()

            A 1 Reply Last reply
            0
            • L lakshmichawala

              here file.name contains that arabic file name with a long name characters. Response.AddHeader("content-disposition", "attachment; filename=" & Server.UrlPathEncode(file.Name)) Response.AddHeader("Content-Length", file.Length.ToString()) Response.ContentType = type ' "application/octet-stream" Response.WriteFile(file.FullName) Response.End()

              A Offline
              A Offline
              Abhijit Jana
              wrote on last edited by
              #6

              lakshmichawala wrote:

              Subject: .hers is the my code

              I have asked the same thing over here http://www.codeproject.com/Messages/3101813/arabic-file-name-is-coming-in-junk-characters-while-download-the-file-using-asp-net.aspx[^] Why are you asking same question multiple time ?

              cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net View My Recent Article

              L 1 Reply Last reply
              0
              • A Abhijit Jana

                lakshmichawala wrote:

                Subject: .hers is the my code

                I have asked the same thing over here http://www.codeproject.com/Messages/3101813/arabic-file-name-is-coming-in-junk-characters-while-download-the-file-using-asp-net.aspx[^] Why are you asking same question multiple time ?

                cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net View My Recent Article

                L Offline
                L Offline
                lakshmichawala
                wrote on last edited by
                #7

                hi Abhijit sorry to disturb u ...i have got the soluting for that problem.now this is new problem iam facing abi..since some cases the arabic file name is large more than 40 characters in length then while saving the file actual file name is not coming

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups