HISE Logo Forum
    • Categories
    • Register
    • Login

    Images from server

    Scheduled Pinned Locked Moved Scripting
    imagesserver
    64 Posts 8 Posters 3.9k Views
    Loading More Posts
    • 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.
    • DanHD
      DanH @d.healey
      last edited by

      @d-healey Thanks David. So I can download the example from the Docs ok (Hise windows installer) but not having any luck with my dropbox... Small snippet below in case anyone has any ideas :)

      HiseSnippet 1025.3ocsV0sSiaDEdLfW0j1rpqTe.F4qR1M0wgk1cEHDPHIUnxOQqCa6cqlXOgLE6YbmYLPDBo9n0Go9FzdFamDyRfhhD9BKe9c9lybNeiGHEATkRHQVUFNMghr9Na+ob8jCmPXbzQcQVu1NLRPBwZpRiai5LMgnTzPjk05+hwGqJafxd9m85PhH7.5BUHzmEr.5wrXldg1A6+qrnn9jP5PVbIu2Z+iBD7CEQhT.Oqa6gRHAWRtfdJw31Z1HqW0KjoEReMAfCxZiNhvo9SDWyy8+yLEaTD0HzF4CIJWceQTnAwFsnCmvhBGLaeqPPVFrnJrddU3GrOgExlqeQ036yLfWDQ45g0ZOE7ZWFddOe3YUBdajCu2X6GHYI5EVLX6asOhqoxwD3HnLrx8EsFec6CEfGbsaL4RZeIHLOh5u2yqIdyO50XmZUqU0mJuhJcUTcGhhd9mNttyDsNQscqVWe80tgRQxHwMtAhXGS.v4FzcbEQh0D4ETMdWbeVD0epRSicAEY6QY8RJ6BkESikpgwd111XstS2y9sSO9rC5Nrm+PWodrSNhZ81ZUOHPmRhvcMq9M3HF+xsMldDj0R0RK2JUL5Csm9Gih4+YZquN26EFsqmIEusk4878cXA3xQz+edbZhu8tlEa9l3wo7.MSvq2nV0aqUECOlZSLbVAsyPwwwYmb04umY3c6h6wufwo..RgNkgBesjwuntdBS4FRzDWdZ7rJGMD2B21aysb8l+QSb6F67fj5bRGvCG76dNoenPC03klYHAPptO1gVJkHh5l.YRWuXQmggBeXiKsDiYblZBMrQgKOLIK7UkZ5uw6gc5J3TG71Xm9DVTVKwc48Eyp0XA+TgldFTzqda0JUuqJ9qMMd7RsYFJjhnHn+bYlMjTxmJv5PQaDU1DNiiRoycDlVuOcf8iSGTlsJHeFsjiB9Qbl9rDJ+wHIPEC1F5hBTAtpyHKdcAYQmTsVvQLfSnhctPaTFjKSXiN+ntPkeVhfbBqSBUpYlsfUW5U.gdNKTE6tT0kZQRluwIvIDf.qW8LV1aluj+Uu8mNW3uOeeJm.0DCI6wThrfWmoNQDCImHmVTAdHmHvLKBSiH56SWatipv.bncOdQC2GWwzSKeG1KBG9yEtuwd.SGLY43cskfW3X5kFuE2HVyt23wz.8Bvtgc+e+k+5OzmDoZfi5DBPUAsM1mlF6C+fP.EPBmSiLCVVqYFAxk8LxlJiOkGlI7uvSgw1FYqBismYDESBjhuDjO3Xty8axz.Xhm8qGUrOwHimOuXa645ghgtzuDDXJE+Hf8kGylqPLueEhYqUHleZEh4mWgX9vJDyGexXLDDGjpEw4iIfhA8x3srr5kwfj0Qh9OHpm3ON
      

      DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
      https://dhplugins.com/ | https://dcbreaks.com/
      London, UK

      1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey
        last edited by

        That dropbox link isn't a direct link to the file, it's a link to a Dropbox page from which you can download the file. You can test this by opening the link in your web browser. To get direct download links from dropbox you have to apped ?dl=1 to the url.

        Like this: https://www.dropbox.com/s/tr4uob71yjbmnqu/DOWNLOADTEST.rtf?dl=1

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        DanHD 1 Reply Last reply Reply Quote 0
        • DanHD
          DanH @d.healey
          last edited by

          @d-healey Thanks David, I figured all that out... Which is why I don't think a dropbox link will work with Hise downloading the file etc... 😢

          DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
          https://dhplugins.com/ | https://dcbreaks.com/
          London, UK

          d.healeyD 1 Reply Last reply Reply Quote 0
          • d.healeyD
            d.healey @DanH
            last edited by

            @DanH Assuming Dropbox has some kind of developer API you'd be able to write a bit of server side code to generate a download link when your HISE app makes a request (this is what I'm doing with my WooCommerce site, using Amazon S3).

            Libre Wave - Freedom respecting instruments and effects
            My Patreon - HISE tutorials
            YouTube Channel - Public HISE tutorials

            DanHD 2 Replies Last reply Reply Quote 0
            • DanHD
              DanH @d.healey
              last edited by

              @d-healey Hmmm. Ok will look into it :)

              Cheers

              DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
              https://dhplugins.com/ | https://dcbreaks.com/
              London, UK

              1 Reply Last reply Reply Quote 0
              • DanHD
                DanH @d.healey
                last edited by

                @d-healey Would it be this kind thing?!

                Link Preview Image
                HTTP - Developers - Dropbox

                Dropbox is a free service that lets you bring your photos, docs, and videos anywhere and share them easily. Never email yourself a file again!

                favicon

                Dropbox (www.dropbox.com)

                Can't believe I'm about to go down yet another rabbit hole :face_with_tears_of_joy: :rabbit_face: 🕳

                DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                https://dhplugins.com/ | https://dcbreaks.com/
                London, UK

                d.healeyD LindonL 2 Replies Last reply Reply Quote 1
                • d.healeyD
                  d.healey @DanH
                  last edited by

                  @DanH That's the kind of thing, yeah.

                  Libre Wave - Freedom respecting instruments and effects
                  My Patreon - HISE tutorials
                  YouTube Channel - Public HISE tutorials

                  1 Reply Last reply Reply Quote 0
                  • LindonL
                    Lindon @DanH
                    last edited by

                    @DanH why not use a waaaay simpler download service that gives you a simple URL- I use pCloud.

                    Link Preview Image
                    pCloud - File Security Made Simple | pCloud

                    pCloud is the most secure encrypted cloud storage, where you can store your personal files or backup your PC or share your business documents with your team!

                    favicon

                    (www.pcloud.com)

                    HISE Development for hire.
                    www.channelrobot.com

                    d.healeyD 1 Reply Last reply Reply Quote 1
                    • d.healeyD
                      d.healey @Lindon
                      last edited by

                      @Lindon said in Images from server:

                      @DanH why not use a waaaay simpler download service that gives you a simple URL- I use pCloud.

                      Link Preview Image
                      pCloud - File Security Made Simple | pCloud

                      pCloud is the most secure encrypted cloud storage, where you can store your personal files or backup your PC or share your business documents with your team!

                      favicon

                      (www.pcloud.com)

                      That looks good, might have to get me one of those!

                      Libre Wave - Freedom respecting instruments and effects
                      My Patreon - HISE tutorials
                      YouTube Channel - Public HISE tutorials

                      DanHD 1 Reply Last reply Reply Quote 0
                      • DanHD
                        DanH @d.healey
                        last edited by

                        @d-healey indeed, my dropbox is just about to renew so cld be good timing. Dropbox has been pretty annoying of late tbh

                        DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                        https://dhplugins.com/ | https://dcbreaks.com/
                        London, UK

                        d.healeyD 1 Reply Last reply Reply Quote 1
                        • d.healeyD
                          d.healey @DanH
                          last edited by

                          @DanH said in Images from server:

                          @d-healey indeed, my dropbox is just about to renew

                          My annual subscription renewed 2 months ago :( So i'll hold off on the switch to pCloud until next year, but I've cancelled my db sub.

                          Libre Wave - Freedom respecting instruments and effects
                          My Patreon - HISE tutorials
                          YouTube Channel - Public HISE tutorials

                          LindonL 1 Reply Last reply Reply Quote 0
                          • LindonL
                            Lindon @d.healey
                            last edited by

                            damn - did I miss all those referral dollars? :face_with_tears_of_joy:

                            HISE Development for hire.
                            www.channelrobot.com

                            DanHD 1 Reply Last reply Reply Quote 1
                            • DanHD
                              DanH @Lindon
                              last edited by

                              @Lindon So PCloud works really well for this, thanks for the tip.

                              Seems like the equivalent is impossible with Google Drive and a right pain in DropBox

                              DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                              https://dhplugins.com/ | https://dcbreaks.com/
                              London, UK

                              1 Reply Last reply Reply Quote 0
                              • Dan KorneffD
                                Dan Korneff
                                last edited by

                                You guys should take a look at NextCloud as well. It's an open source Cloud and Collaboration Hub. Been using it here for about a year now with excellent results on my Ubuntu server.
                                https://nextcloud.com/

                                Dan Korneff - Producer / Mixer / Audio Nerd

                                DanHD 1 Reply Last reply Reply Quote 0
                                • DanHD
                                  DanH @Dan Korneff
                                  last edited by

                                  @dustbro Looks interesting thanks :)

                                  So would anyone know how to get

                                  Server.downloadFile("download/HISE_1_1_1.exe", {}, target, function()
                                  

                                  into a button callback? It has it's own callback already does it not?

                                  Would be nicer if the user can click the button to download rather than it downloading as soon as the app is loaded...

                                  HiseSnippet 1037.3ocsVstaaaCElxIbn1adXEaO.D5WxndJVIoacMnnd91lQiSMpRJ1+BXjniIhDofDUVLBBPez1izdC1NTWrkSbCBLPjAL7gmae5b4idZrzikjHiQF0OcQDCY7cX2EB079yobAZ7.jwOh8CjTehhknHNj47DFp2hHZRByGYXryenMzn9tnrm+888nATgGa0QHzmkbO1w7PtZ0oS69AdPvHpO6TdXEqOr6XOonuLPlBfZGbGTD06J5krSnZypgQFeyPetRF6pn.lPF61S5uvct7uE41+YdB+h.lVvA4BAJ+3Qx.eMh0mh5OmG3Os7kOAAQY5pRwN4kheBOg6yWd9pRxOjofrxip0CiZOF7bpBuNOc3YTAd6lCuWhc8h4QpUZzX6awiEJV7Lp25sobaQ09vN39RvBgxNjdEaTLHrzCqC5zoMY+2zo0QMa.sAnieMMlbL8BVfC4cjROujo5KCijBPvxLWso1mlMbYwWyhsSXpdzD1Ye5XKy4JUza2aO8jiMM0mKMWO7JZLDPH7i3AL2EIJVnNCYUjXqJGN.Jh5YwjVYHPWjzZsL+ywtCO2Q+wlcCq.IKwhega41VJs28bpM416ZWfk1jYoBOEWJrZ0rwsMaPfGMTCgBMLKBX0z7n7iy+tTwqdGYn3RtfAYMEZymJcUwbwkVJ3021mpn1hzvxWDlOYOhSm8Oztyxezl3z5nGDTyI8.KLIu5oD9SkJZvliLD.HTkXOuyoaVVlJ1MJnHTjyRH.c7DY.yNBxhx5dJKd24ypj9YbAOYNyuUgIOLHqrMIUO3RdOwb.LJYRdKwbDkGj0+tqrI1rQYufHEmHUrOBMkF21ndi6ZPtupYy1nN8barLH.Fm1jZMCT7i4nETTufE2FlABRYKMDVEWeWG+020qRE4kuFUwPoXrfq9XDS70X.PE6dZtfBTAlpxXB99BlfdoJkTf3vBecbtfCJCxUYiQmMd.T8KCDDSHOQrXEW+JXLfcMvVmSwTGOfkbkRFADuKW3AB3mPZuYYJ+xvtKVJ7Om0kInPMQyfdLiFWPZySlHCgfSiWTVAVkObd9ZVjuro1rz8Bb9DbkrgplsuP6pGq0bkNGX+aY6P4+.t.5ADp.stzOMfpVmqWeAWgBXnXMRUMwoHgqVT8BvmkK.dpv8k3obk27Mi2Za.uvXvyMdKtNsId3rYLO0JvtKdze87e2I5SxTEvQNgBTkvfB9jzPW3eW3w.jHDr.8hqQM8JVtbGsrtx3xD9YB+G7TnzQKaTnzoTIJj5EKO2KewTeg8KxNAvjH6+sTGOQKSVtOhwcr6fBgsfy87zkheFv9l8Y+svmC1BeNbK740agO+xV3yutE97lG0GMAzumpjg4qIvASGlwKZXLLigJahD8+HZGDTC
                                  

                                  DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                                  https://dhplugins.com/ | https://dcbreaks.com/
                                  London, UK

                                  1 Reply Last reply Reply Quote 0
                                  • d.healeyD
                                    d.healey
                                    last edited by d.healey

                                    Just put it inside a button callback

                                    inline function buttonCallback(component, value)
                                    {
                                      Server.downloadFile(etc.);
                                    }
                                    

                                    Might want to warn people that opening your snippet will download an .exe to their system. I sense a HISE deployed virus :p

                                    Libre Wave - Freedom respecting instruments and effects
                                    My Patreon - HISE tutorials
                                    YouTube Channel - Public HISE tutorials

                                    DanHD 1 Reply Last reply Reply Quote 0
                                    • DanHD
                                      DanH @d.healey
                                      last edited by

                                      @d-healey Ha, it's just for the samples actually 😆

                                      I had tried putting it in a button callback before but the same behaviour happened (auto dload) and the button did nothing.

                                      HiseSnippet 1083.3ocsV0saaaCElxIZn1adXEaO.D5JYTOGqjzstFTTO+2lwhSMpRJ1cALRzwDghzPhJKFAAnOZ658zr2fsCEkrkSbCBLPjALD44uOdNG9czjXY.MIQFirpd5h4Tj02X6uPnl0aFgIPi5ir9d6PtjDhUzDE1COikPQcWLmjjPCQVV67aZEsptKJ64eeeWBmHBn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ym+Q2nOJSU.Y6XBv4BMJ1mjF4CebS.EPhPP45KtVUzWwLqaqWqyL9TQX1h+CdxE5oWakKzqPHJhDDKOOvbwT+8BuHaG.ShrOapp8X8Z7x6i11sa0FEA2BNOHPmJ9Q.6a1l82BaNXKr4vsvlWuE17SagM+7VXyadTazDP+ZpRFYtl.aLYPFunk0fLFprNRz+C8+KC1
                                      

                                      DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                                      https://dhplugins.com/ | https://dcbreaks.com/
                                      London, UK

                                      1 Reply Last reply Reply Quote 0
                                      • d.healeyD
                                        d.healey
                                        last edited by

                                        Your button is set to saveInPreset. Also you probably want it to be momentary and that means you need to check it is turned on value == 1 before you start the download.

                                        Libre Wave - Freedom respecting instruments and effects
                                        My Patreon - HISE tutorials
                                        YouTube Channel - Public HISE tutorials

                                        DanHD 1 Reply Last reply Reply Quote 0
                                        • DanHD
                                          DanH @d.healey
                                          last edited by

                                          @d-healey as in like this?

                                          inline function onButton1Control(component, value)
                                          {
                                              if(value==1)
                                              
                                          	Server.downloadFile("download/HISE_1_1_1.exe", {}, target, function()
                                          
                                          HiseSnippet 1096.3ocsV0uSiaDDeMfauj1T0SsO.q7e4nKMDePaudHzQyWsQE3hNCm5+gVrmPVg8tQ1qoDgP5dz5CSe.5aP6rdsSLPNDJR3HE4clcl427w9a83DY.jlJSHV0NY9LfX8019yEpo8lx3Bxn9DquyNLRxBoJHUQ8nS4o.o67YrzTHjXYs4uo2nUssH4O+665xhXh.XoHB4iRd.bHOlqVJc7A+AOJZHKDNgGWY26dvn.onmLRlgfZS6NjYrfKYW.GyzaaCah0WLHjqjI9JFhIh0Vckgy8mJ+KgY+ejmxOOBzK7H9niLhGJiB0HVKkzaJOJbbYxmRPuLdYoXSSo36sOhGxWHeYI4ayUPWZQ05g0FOF77pBuNOc3YUAdaYf2Ks8CR3yTK0nw1WYORnfjIrf61lL6krw+rocOItCgpcL6RXXBtXgEt6zoSK5qeSml60nN1FvN9UrD5grygHO59zRKu.T8jwyjBbgqiQsi1lF08gjqfj1ofpKKEN8CG55LUol81s2VO4zlkExkN208JVB5Pz8C4Qf+7TEDqiPdEIwshv9XQTOKl1LGA5hjVqqyuOxevYd5esgqgBjvEQbAPmjIBTbofJEcyTJovSmEIxH2fxTnEBinLnYi52znNEe3Sbykr+9dMMRZTuVQlEV.BSjKWs88fPK5M21pHyZs.CtKCgNwiw1FNYiYtiydkwQ+eohWsOcf3BLKvnlgCMmH8UIbwEtJrX1NjoXsEYwkkEHjtM0qyq2scmEuzh50buG3Tmi5h6vg9pmh6OQpXQq1ynCPWUhcybft065nfqUXQnHlkP.q7oxHn8LLJJ26ojtn1uL7S3Bd5THrnKPenSVt2zL8w.56nN8wtpC8sTmgLdT9zvslQhay+e0SwECGNM0IPwHROVTz4H8i68mcLtqxn0wRE7dr+V+l50peac58UMYxJ0U3tHbNeUp0TiIOlgtX+4bHob.tbiHGwcIgr+7jPU4HCLUlJaTJFI3p2OCDeNpIRQ4De6zQ8wFglspPFtuYPhhqgfUe3J7Z.C2UM69P5kJ4LjQeQOfX8kpbseSAylolS3gZCJZ.jqWbWwmFbv7EK96SO.DLLmzTyGBrjhaC3oGIiQmyRlaxfT1UvHw3D.ayZhQRk3aaheih3mOPmG9WXaFtqDcR0n+I1A5IdMor2Ns+k7iWlWva5d.yMd+gLLKhot6kJ5aRKTfM46vdqYnEob07p2z9rbSySEtuzdLWELc03ciUfWbr34FuE2a2vdvjIPfZIX2xd3e97eIM4CxLERedDCYQwAE6iyh8wOiI.PjHDPj9fn0F5iLl0czq0UFePDlu3+vmBkd50VEJ8JURhYAIxyBLG+0eYvKxkfXRj+AR0rORul5QxoDP6r6ztCIFOUbVPftT7CH1WsMudMrYm0vlcWCa9w0vleZMr4mWCadyiZilP5WyTxXywDTv3A47jVVCxYrxmHI+ORJTKbB
                                          

                                          DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                                          https://dhplugins.com/ | https://dcbreaks.com/
                                          London, UK

                                          1 Reply Last reply Reply Quote 0
                                          • d.healeyD
                                            d.healey
                                            last edited by

                                            @DanH You tell me :p does it work or doesn't it?

                                            I recommend you always use curly braces with your if statements until.

                                            Libre Wave - Freedom respecting instruments and effects
                                            My Patreon - HISE tutorials
                                            YouTube Channel - Public HISE tutorials

                                            DanHD 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            16

                                            Online

                                            1.7k

                                            Users

                                            11.8k

                                            Topics

                                            102.6k

                                            Posts