Load content of folder located in /content/dam/

Hi,
I'm trying to load the entire content of folder "/content/dam/myFolder". Is it possible? I've tried this piece of Java code
File folder = new File("/content/dam/myFolder/");
File[] listOfFiles = folder.listFiles();
if(listOfFiles == null){%>
     NULL<%
}else{%>
    NOT NULL<%
but I allways get the NULL message.
Also if I try
folder.exists();
it returns false
Thanks for any help.

Hi,
I don't think using the standard File API is a good way to access the repository.
Instead you should use the repository API to find the Node for your path and its children. For assets you can also extend your code to use the DAM API to get actual asset functionality such as renditions.
Hope this helps.
Regards,
Freek

Similar Messages

  • Load content in another viewing space... Button..Viewer..Video..Panorama.. Carousel..Dreamw..Flash..

    Dear Reader,
    I made a site with a custom player to show video. I made my own buttons in Flash. On type showed while hovering over the played video and are used for controlling play/pause - button for homepage and two buttons for the next or previous gallery. The other type are underneath the playing video and let you pick thumbnails whose links were shown in the player window.
    First I wanted to use a carousel (Lee Brimelow) for the second type of buttons, but I couldn't integrate these with the rest of the player code (my flash-code knowledge is rather limited).
    Later on I wanted to show a panorama wich I only got to work with the Away3D-method. In this case I couldn't integrate it with any other code, so I used Dreamweaver to let a viewer choose thumbnails. One can navigate in the viewer window by dragging in the window, so I left out the other navigation buttons within the player window, mentionned earlier.
    Now I am thinking of this concept:
    - Button(s) for Homepage and (Next/Previous) gallery;
    - Viewer window, with
              - timeslider and Play/Pause button integrated in case of a video or slideshow;
              - dragging in case of a Panoramic view;
    - Carousel for picking a subject that will be shown in the Viewer window.
    Question:
    - Can I combine these 3 types of the concept as Flash-movies and buttons/carousel in Dreamweaver and still have the carousel control the viewer window?
    or:
    - Should I do all in Flash and make a personal Flashplayer (like I did before) and study more Flash?
    What tutorials could I take a look at? (For instance I found a lot of sites about how to make a carousel. I don't know how to make it control a viewer window (to make it load content in another window or space.)
    Greatings,
    Richafrost.

    Hi,
    Just wanted to clarify a few things to try and eliminate what could be causing the problem.
    1. You are using rtmps protocol. Do you have SSL certificate configured and port 443 enabled?
    2. When you tried playback via the hosted OSMF player was it via rtmps?
    3. The standard way the request url is protocol://server-domain-or-IP/fms-app-name/[fms-app-instance-name/][codec-prefix:]file-pa th[filename-extension]. Could you try with that?
    I tried to reproduce your issue with simple rtmp prtocol and here are my observations/suggestions :
    1.When I first entered the source url I got the error you mentioned : "The video player is in the connection error state." However, when I publish the same .fla again it works fine.
    2. When you are placing the on a computer on the same network and running the html in the browser, it might not have permission to access the network. You will generally get a pop-up saying "Flash Player has stopped a potentially unsafe option". In any case, in your Flash player settings manager you can go to the Advanced tab and add the location of the folder containing the swf as a Trusted location and then try to reload the page again. I get the "status bar spin" when the folder did not have permissions.
    3. Also, when you try playback via Share Point can you go back to FMS and check if a connection request has actually come to the server. You can check under the access logs in root_install/logs or the application logs under root_install/logs/_defaultVHost_/vod/
    Please let me know if this helps.
    Thanks,
    Apurva

  • Purchased Content -- Error Loading Content Persists

    I've been recieving the "Error Loading Content" message even after Restarting and Restoring my 3rd Gen Apple TV.
    This only happens with purchased iTunes content -- movies, shows -- and not Netflix content, etc.
    Anything I can try?

    There are two location redirects send by the server on that request and Firefox doesn't allow that.
    * http://www.bimmerpost.com/forums/showthread.php?t=593711&goto=newpost
    Location: http://e89.zpost.com/forums/showthread.php?t=593711&goto=newpost
    Location: http://www.bimmerpost.com/forums/showthread.php?s=573ac68950c42d88c06365e73c215759&p=10568611#post10568611
    If you leave out the &goto=newpost then only one redirect is send and it works.<br />
    If you click the above link that has a trailing ')' then that also makes the server send only one redirect because that link is no longer valid.

  • Finder (Snow Leopard 10.6.8) taking long time to load contents of any directory. Please help?

    In my macbook pro 5,2 snow leopard (10.6.8), Finder taking long time to load contents of any directory. Please help?
    I have already tried to spotlight re-indexing but it did not help. I am hardly able to work on it, almost for each directory I browse its keeps on spinning for 1min.

    Download iTunes from Apple's web site and install it.  Don't use Software Update.

  • Safari (and other browsers) very slow loading "content rich" web pages

    Hi,
    I'm a very "light" user of my mac, using it basically for surfing the web, uploading pictures and music, etc... and recently any web page that has a lot of content (examples are nfl.com, nba.com, nhl.com, mlb.com, united.com, continental.com) takes a very long time to load (most other web pages load normally). Safari (and Firefox as well) gets to the web page in an instant, but then sits there trying to load content (mostly high res pictures and ads I suppose), which sometimes takes minutes or just never fully downloads the content. I'm connected to the internet via ethernet (high speed cable modem from Time Warner), and they've already come out and verified that everything on their end is fine. I've followed the instructions posted on some of the other similar posts (emptying cache, deleting cookies, disenabling add on's, reseting safari, logging in as another user, etc..), and this has not helped. Since this problem is persistent with both browsers, I'm wondering if this may be an OS issue as opposed to a browser issue. If someone can walk me through a solution (keep in mind that I'm a novice), that would be much appreciated.
    Thanks!
    Message was edited by: Mr. Cady

    HI and welcome....
    Since this problem is persistent with both browsers, I'm wondering if this may be an OS issue as opposed to a browser issue
    Could be.
    Since the problems exist with multiple browsers, login to another user account on your Mac. Try Safari there. If you see the same behavior with Safari there, then follow the instructions here. You will need your install disc. The startup disk may need repairing. Even if Safari is ok in another account, it's still a good idea to check the startup disk. That way you can rule that out.
    Insert your install disk and Restart, holding down the "C" key until grey Apple appears.
    Go to Installer menu and launch Disk Utility.
    (In Mac OS X 10.4 or later, you must select your language first from the installer menu)
    Select your HDD (manufacturer ID) in the left panel.
    Select First Aid in the Main panel.
    (Check S.M.A.R.T Status of HDD at the bottom of right panel. It should say: Verified)
    Click Repair Disk on the bottom right.
    If DU reports disk does not need repairs quit DU and restart.
    If DU reports errors Repair again and again until DU reports disk is repaired.
    When you are finished with DU, from the Menu Bar, select Utilities/Startup Manager.
    Select your startup disk and click Restart
    While you have the Disk Utility window open, look at the bottom of the window. Where you see Capacity and Available. Make sure there is always 15% free space.
    Carolyn

  • Purchased MLB via 1 of my 3 appletv's. My oldest 2nd gen 720P shows "error loading content" for all games. What's up?  Also I can't get MLB to work on my iPad2, iPhone 4S or iPod 5th gen. Arrhhgg

    Purchased MLB via iTunes on 1 of my 3 appletv's. My oldest 2nd gen 720p shows "unable to load content" for all games , but my other 2 appletv's work fine, restarted problem appletv to no luck.  Also can't watch games on my ipad2 "unable to restore from iTunes" , iPhone 4s " unable to connect to MLB.com" or iPod 5th gen.

    Purchased MLB via iTunes on 1 of my 3 appletv's. My oldest 2nd gen 720p shows "unable to load content" for all games , but my other 2 appletv's work fine, restarted problem appletv to no luck.  Also can't watch games on my ipad2 "unable to restore from iTunes" , iPhone 4s " unable to connect to MLB.com" or iPod 5th gen.

  • Graphics using graphic API are drawn below the loaded content created using Flash authoring tool

    Here is my problem.
    I am developing a Analog Dial component. Here , I am
    extending UIComponent and loading a swf file generated using Flash
    CS3 authoring tool ( the swf basically has the circle and needle)
    and adding the loaded content as child of Dial class.
    Next I use Graphics API to draw the major and minor ticks on
    the dial.
    As mentioned in the curveTo method of flash.display.Graphics
    class documentation (
    http://livedocs.adobe.com/flex/201/langref/index.html),
    if you are using graphics api and also loading content created
    using the flash authoring environment the vector graphics will be
    drawn underneath the loaded content.
    Well , Is there any way to make the graphics appear on top of
    the loaded contents?

    It appears that this may be accomplished more easily if I do something similar to the StrobeMediaPlayback implementation. Looking at the StrobeMediaPlayback source code it looks like Adobe has done something a little different than their ControlBarPlugin, placing the controlbar and root media element inside separate MediaContainers and then adding those containers to the display list. Is this recommended over using the frameworks ParallelElements? If so, is communication between the control bar and root media element still a matter of just updating the target reference via metadata?

  • Error Loading Content

    I just upgraded AppleTV software to 5.1 (5201) On Oct 15, 2012, now I keep seeing ERROR LOADING CONTENT when I play music from iTunes using iTunes Match. Songs will play for about a minute, then Apple TV says ERROR LOADING CONTENT. What's going on here?

    Contact iTunes Store support - there could be an issue with Apple's servers but it's unacceptable you can't watch content you've paid for.
    Assume AppleTv works ok for YouTube (test it if you don't use it often) and any local itunes streaming?  (just to test local network and internet connectivity)

  • PNG transparency lost using event.target.loader.content.bitmapData

    I load a png 24 (tripple checked alpha is ok)
    override public function loadData():void
         var request:URLRequest = new URLRequest(url);
         var loader = new Loader();
         loader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageloadedSuccess);
         loader.load(request);
    public function imageloadedSuccess(e:Event):void
         showPNG(e.target.loader.content.bitmapData);
    in Air 1.5 png (e.target.loader.content.bitmapData) has no transparency
    same code using Flash 10 export transparency is there.
    both of course loading same png file.
    Is this a known issue?
    I haven't tried yet using 2.0
    is there a workarround to load external png and keep the transparency?
    thx by advance
    Fabrice

    for each loader created, create a movieclip and add your loader to the movieclip.  assign all the properties you want to retrieve later to the movieclip and assign your event listeners to the movieclip.

  • Dynamically load content by date using xml

    i would like to load content by date using xml. meaning if i
    have 5 upcoming social events listed, i want them to dynamically
    drop off from my webpage as the event date passes. i would like to
    use the built in spry xml dataset functionality, but don't have to.
    i can't seem to find a way to get the server date and then compare
    it to a date in a xml node. this seems simple, but i can't seem to
    find a tutorial that does not get crazy with all kinds of
    code.

    Have the column headings (which the user clicks to sort by
    that column) as
    links back to the main page, with the sort as a url parameter
    eg
    www.mysite.com/mypage.php?sort=name
    www.mysite.com/mypage.php?sort=date
    etc
    Then in your recordset, change the code from
    $sql = "SELECT * FROM table ";
    to
    switch($_GET['sort']){
    case "date":
    $sql = "SELECT * FROM table ORDER BY date DESC";
    break;
    case "name":
    $sql = "SELECT * FROM table ORDER BY name DESC";
    break;
    You`ll need to change the above to suit your needs obviously,
    but the above
    shows the principles that you need to use.
    So you use the same page for each sort, but the SQL to
    retrieve the records
    in the order you want changes dynamically.
    Gareth
    http://www.phploginsuite.co.uk/
    PHP Login Suite V2 - 34 Server Behaviors to build a complete
    Login system.

  • How to load content of my text file into a Vector?

    Hi!
    Two questions.
    Let say I have used BufferedReader(new FileReader(c:/java/MyText.txt)) to read from MyText.txt file. I want to know how to load content of this file (every line describe each photo in my photo-set) into a Vector? And how to associate lines of MyText.txt as an elements of the Vector?
    I am trying to do something, but no results.
    try{
    BufferedReader reader = new BufferedReader(new FileReader("c:/java/Applications/MyText.txt"));
    String str=reader.readLine();
    JList myList = new JList();
    StringTokenizer st = new StringTokenizer(str,"\n");
    Vector vr = new Vector(25);
    while(st.hasMoreTokens()){
    String nextToken = st.nextToken();
    vr.addElement(nextToken);
    myList.setListData(vr);
    TA1.setText(TA1.getText()+
    (String)myList.getSelectedValue());
    }catch(IOException evt) {};

    BufferedReader reader = new BufferedReader(new FileReader("c:/java/Applications/MyText.txt"));
    Vector photos = new Vector(0,0);
    while(reader.ready())
       photos.addElement(reader.readLine());
    }good luck,
    Felipe

  • Load content in remote page

    Hello Experts,
    We have created a HANA project wherein we have to navigate to different pages based on the response from the main page.
    However, the challenge is that we have to update fields on these pages based on an action on the current page, that too, without actually navigating to those pages. That is, we need to load content in specific field on these various pages, when a button on the current page is hit.
    Please can anybody suggest a way to achieve this?
    Regards,
    Divyata Dal

    Hi Divyata,
    maybe one way to achieve this is via multiple ui-areas.
    Just define in your HTML different sections or divs, so you are able to create multiple views and place them in one document. On this way you have a clean separation of your view elements and also a reusable approach. Besides, you can control your views and their content from a central point in your application.
    This simple example gives you a little impression of the idea.
    Hope, it helps
    Michael

  • How to access loaded content of HTMLLoader

    I have a HTMLLoader and after the content is loaded, I'd like
    to access the loaded content. There should be an easy way but I
    could not find it ...
    And what if the loaded content is PDF?

    Suppose you have:
    var htmlLoader:HTMLLoader = new HTMLLoader();
    //Add to display list, load content, etc...
    Then you can access the window object of the loaded page
    thusly:
    htmlLoader.window
    If the HTMLLoader loads a PDF file directly, I suspect that
    under the covers AIR embeds it in an HTML page. So you could still
    access htmlLoader.window and then find the PDF object in the page.
    (I haven't tried this myself, though.)

  • How do i load content from an existing ipod to a new computer and installation of itunes?

    how do i load content from an existing ipod to a new computer and installation of itunes?

    Recover media from iPod
    See this post from forum regular Zevoneer for options on moving your iPod data back to your computer.
    tt2

  • "error occurred while loading content" ?

    Curious if anyone is having the same problems with their Apple TV.
    It first started when we tried to rent episodes from Apple.  We'd purchase the episode, it would be ready for veiwing, and after about 5 mintutes the "error occured while loading content".  We'd go over to netflix and I could watch old episodes of various tv shows without a problem.  Downloading a movie rental in HD would also take up to 5 or 10 minutes. 
    I checked our wireless modem - everything was working fine.
    I reset the network settings on the Apple TV and checked that it was up to date.  Also reset all the username/password stuff.
    That did the trick for about a week and now we're having the same problem. 
    Thoughts anyone?
    Thanks

    I'm somewhat convinced that errors on the network (or for that matter over HDMI) can cause corruption of the Apple TV. In such cases restarting the Apple TV by removing ALL the cables for 30 seconds, usually does enough to reset things.

Maybe you are looking for

  • Open item clearing manually F-44

    Hi Gurus, I am having a problem with F-44 while clearing the open item manually. I have an open item for Rs. 5000 for a vendor X and i also have payment (paidn on account - without clearing the open item) in my vendor X Rs. 5000. When I clear the ope

  • Vendor master bank details urgent.........

    Hi Exps, In the vendor master under general data, option payment transactions the window opens for bank details. Here which bank details i have to maintain? is my company bank details or vendor bank details? for bank interface we have to maintain eve

  • Apple Pro Speakers w/Mac Mini?

    I have two Mac Minis and a set of Apple Pro speakers. The Mini has the minijack slot, and the speakers have a minijack configuration . . . but they're different sizes. Does anyone know if there are adapters out there for such situations? Thanks.

  • After upgrade to iOS 5 there is a large chunk of data ( 9Gb) on the phone labeled as "Other" in iTunes.

    After upgrade to iOS 5 there is a large chunk of data (>9Gb) on the phone labeled as "Other" in iTunes. I suspect this is the music library from before the upgrade. How do I delete this data?

  • BW 3.5: flexible Authorizations for reporting

    Hi Experts, I am looking for a solution for flexible reporting authorizations. The background: There are lots for Profit Centers in our system. Currently, we have created lots of Roles/Profiles which include fix values defined to limit access for use