12 Replies Latest reply on Aug 25, 2004 6:59 PM by milesparker

    managing picture (and other binary) files

      What's the recommended strategy for managing pictures and other binary files (presentations, etc.) in nukes? Do folks store them as static content on the webserver and just link to them (outside of nukes)? Or do you upload them into nukes?

      So far, I've never been able to upload anything to nukes without 500 errors. I've posted this 2x before, but never have gotten a response. I'm figuring there has to be some other way that people are using.

      Thanks,
      gary.

        • 1. Re: managing picture (and other binary) files

          the new installer for nukes-1.1 takes pictures and put them in the HTML module for the news module. so default news module icons reside here now. for me it makes sense, the HTML module should have an interface so it is possible to know its content easily.

          • 2. Re: managing picture (and other binary) files
            theute

            What errors do you have ? And which are your 2 posts ?
            If you have an out of memory error you can try using the fileupload.jar in the wiki page about "know bugs"

            • 3. Re: managing picture (and other binary) files

              I'm getting 500 errors from some filter. I don't explicitly see "out of memory", but I saw some other posts related to that. I'm gonna up the JVM memory and restart JBoss to see if it helps. I can't do it until tonight. I'll let you know how I make out if that helps or not.

              Here are my 2 previous posts:
              http://www.jboss.org/index.html?module=bb&op=viewtopic&t=51293
              http://www.jboss.org/index.html?module=bb&op=viewtopic&t=50720

              • 4. Re: managing picture (and other binary) files
                theute

                Ok from your other posts, it's not a OOME.

                If you can try the 1.1.0RC3 that may solve the problem.
                If you want to try it very quick, just grab the standalone version. there is nothing to setup. You can see if it works.

                There are even already some icons as examples.

                • 5. Re: managing picture (and other binary) files

                   

                  "cuoz" wrote:
                  What's the recommended strategy for managing pictures and other binary files (presentations, etc.) in nukes? Do folks store them as static content on the webserver and just link to them (outside of nukes)? Or do you upload them into nukes?


                  In CVS HEAD (Not in 1.1, I think) I have added functionality to allow the upload of an entire archive (.zip file, etc..) into exploded directories in the Nukes repository -- this should make the process of adding abunch of binary files a bit easier. HTH!

                  But I have also had no end of issues uploading larger files to nukes (see earlier post) in my case I don't get specific errors at all, Nukes just hangs.

                  • 6. Re: managing picture (and other binary) files
                    theute

                    MilesParker, i think you forgot to commit the HTMLModule.java file, there is no hook to your plugin.

                    There is no reference to Archive plugin.

                    • 7. Re: managing picture (and other binary) files

                      I wanted to provide an update: Increasing the JVM memory fixed the problem. Although I didn't actually see an OOME, I guess that was the cause of my problems.

                      Thanks for the tips.
                      Gary.

                      • 8. Re: managing picture (and other binary) files

                         

                        "theute" wrote:
                        MilesParker, i think you forgot to commit the HTMLModule.java file, there is no hook to your plugin.


                        I had forgotten it! (First time using cvs.) Its in there now, let me know what you think.

                        • 9. Re: managing picture (and other binary) files

                           

                          "cuoz" wrote:
                          I wanted to provide an update: Increasing the JVM memory fixed the problem. Although I didn't actually see an OOME, I guess that was the cause of my problems.


                          What do you have it at? I'm at 800MB IIRC correctly, but still have issues.

                          • 10. Re: managing picture (and other binary) files

                            This is a really low-end box with only 384MB ram. I have the JVM set for 256MB. It's running on a very stripped down Debian linux and runs fine. I have only done small uploads so far (~100k), but at least it's working.

                            • 11. Re: managing picture (and other binary) files
                              theute

                               

                              "MilesParker" wrote:
                              I had forgotten it! (First time using cvs.) Its in there now, let me know what you think.


                              I just tried it, it works very well.

                              We will just have to do more error handling, i didn't put the "/" at the end and it complained that i forget the first "/", took me few seconds to see my mistake.

                              Thanks for your contribution, i hope you will stay around to contribute some more ;)

                              • 12. Re: managing picture (and other binary) files

                                 

                                "theute" wrote:

                                We will just have to do more error handling, i didn't put the "/" at the end and it complained that i forget the first "/", took me few seconds to see my mistake.


                                Hmm: error msg should be:

                                The root directory must start with a '/' then you can add zero or more 'dir/' patterns (i.e: /[dir/]*)

                                I followed model for files upload, but yea this could all be a lot more intuitive. Starting perhaps with changing the module name from managehtml to managefiles or something similar. tbc on developer forum.

                                "theute" wrote:

                                Thanks for your contribution, i hope you will stay around to contribute some more ;)


                                As time permits, whic is not much! -- then again, I have invested so much time figuring things out I hate to waste it! :-)