APIs for downloading content

At http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/plsql/doc/sdk23pkg.htm I find a description for Content Area APIs to upload or modify content in content areas.
Are APIs available for downloading too?
Based on a given topURL and a given user, I'd like to be able to make an offline backup of items in a content area.
Regards,
Ton

The table is wwdoc_document$.
Here's an example that will help:
      select d.blob_content
         into theFile
         from portal.wwdoc_document$ d
              , portal.wwsbr_all_items i
         where i.id = :p_itemid
         and   i.caid = :p_siteid
         and   i.is_current_version = 1
         and   i.filename = d.name
         and   i.language = d.language
         and   i.active = 1
            and    (i.language = :p_language
                    or ( exists -- a row for the item in the page group default language
                          (select pg.id
                           from  wwsbr_all_content_areas pg
                           where pg.id = i.caid
                           and   pg.default_language = i.language
                         and not exists -- a row for the item in the current language
                          (select i2.id
                           from  wwsbr_all_items i2
                           where i2.id = i.id
                           and   i2.language = :p_language
                           and   i2.is_current_version = i.is_current_version
                           and   i2.active = i.active
                    );Please keep in mind that the document table is not protected by Portal ACLs, so you should always join it to the WWSBR_ALL_ITEMS view to ensure that users only see authorized content.
Regards,
Jerry
PortalPM

Similar Messages

  • Facing problem with posting Excel file for download - Content in browser

    I am trying to post an Excel file to download from a servlet to a JSP. The content is written properly but to the IE browser and not in an Excel. I even tried giving the ContentType as Word/CSV etc. But nothing works, the content gets displayed only in the browser.
    PLEASE HELP.
    Code snippet in calling JSP:
    DownloadServlet downServlet = new DownloadServlet();
    downServlet.download(response);
    Code in Servlet:
    public class DownloadServlet extends HttpServlet{
    public void download(HttpServletResponse response) throws IOException {
              /*PrintWriter out = response.getWriter( );
              response.setContentType("text/html");
              out.println("<H1>Hello from a Servlet</h2>"); */
         /*HSSFWorkbook wb = new HSSFWorkbook();
    HSSFSheet sheet = wb.createSheet("Sheet1");*/
    String strData = "This is a Test for Download";
    byte[] b = strData.getBytes();
    //response.reset();
    response.setHeader("Content-disposition", "attachment; filename=" + "Download.xls");
    response.setContentType( "application/msword" );
    //response.addHeader( "Content-Description", "Download Excel file" );
    ServletOutputStream out = response.getOutputStream();
    out.write(b);
    //out.flush();
    out.close();          
    }

    Hi Naresh,
    My thoughts on a possible solution, convert the last character value to a HEX value and check if it falls within the ASCII/Unicode CP range, Obviously this becomes easier if you are just looking at a single language character set.
    The below FM and code helps you check if the character falls within the ASCII char set.
    DATA: l_in_char TYPE string,
          l_out     TYPE xstring.
    CALL FUNCTION 'NLS_STRING_CONVERT_FROM_SYS'
      EXPORTING
        lang_used                   = sy-langu
        SOURCE                      = l_in_char
      TO_FE                       = 'MS '
    IMPORTING
       RESULT                      = l_out
      SUBSTED                     =
    EXCEPTIONS
       illegal_syst_codepage       = 1
       no_fe_codepage_found        = 2
       could_not_convert           = 3
       OTHERS                      = 4.
    IF l_out LT '0' OR l_out GT '7F'.
      WRITE: 'error'.
    ENDIF.
    Links: http://www.asciitable.com/
              http://www.utf8-chartable.de/unicode-utf8-table.pl
    Regards,
    Chen
    Edited by: Chen K V on Apr 21, 2011 11:25 AM

  • Does Apple provide DVDs for downloadable content from ADC?

    Yes, hello.
    I would like to know if it's possible to get downloadable ADC content, specifically *iPhone SDK for iPhone OS 2.2.1*, for a small fee, perhaps just shipping, on DVDs or CDs?!
    This is because it would save on bandwidth usage and already backed-up.
    Thank you in advance.

    Please try again, next-time, thank you.
    Message was edited by: Alias of Mark
    To add: Images

  • REST API for download event

    Is there a way to get events using REST API when ever a file is downloaded.

    Hi,
    Seems that there is no such method in REST API can monitor the download event of file at this moment:
    http://msdn.microsoft.com/en-us/library/office/dn450841(v=office.15).aspx
    I would suggest you send a feedback to Office Developer Platform if there any expectation about SharePoint APIs or capabilities:
    Customer Feedback for the Office Developer Platform
    http://officespdev.uservoice.com/
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

  • API For Item Contents

    I'd like to get at the item contents from PL/SQL. What's the supported means of getting the data from the database (for example, with items of type text)?
    The content area API doesn't seem to do anything beyond managing folder and item metadata, and neither does the view.

    The text content can be retrieved from the text column in wwsbr_all_items view. It is a CLOB column.

  • TS4498 i just downloaded content for logic pro x but i cant see where it has installed on my computer, can anyone tell me where the default place is for downloaded content?

    I cant seem to find the content i downloaded for logic pro x.
    I have been downloading the additional content but can seem to find where its been put on my computer. i used the defaukt location but can not seem to find where it is going. Its a lot of content and i wanted to put it on my external drive but i cant seem to figure out where it has gone.
    Can anybody tell me if i can put that content somewhere else and if logic will be able to find it?
    Thanks
    Ken

    Hi!
    Do you run automap 4.8/4.9? If so, then the chance is that automap is the culprit for slow undos/redos on LPX 10.1. Delete the Novation controller in the LPX controller surfaces. You find it under preferences/controller surfaces. If that is the solution for you, then uninstall automap. You find the uninstaller under applications-automap.
    Good luck!

  • Unable to leave review for downloaded content

    The desktop store site is telling me I need to purchase or download an item before I can review it for items that I've downloaded via my handset. The items are exist in "My download history". Please fix this.
    Attachments:
    Screen shot 2011-08-05 at 9.09.24 PM.png ‏71 KB
    Screen shot 2011-08-05 at 9.09.41 PM.png ‏17 KB

    No, I just used the phone... hold on.
    Well trying the oldest download listed still does not allow me to review through the desktop site for the same stated reason.
    The site needs to be fixed.

  • SUN: API documentation download (please)

    Is somewhere available the JSC APIs for download?
    I need it offlien because I cant login for locked content from my computer (IE 6.0.2800 in spanish).
    Could be a locked material but for download? I can download from my home desktop PC (IE 5.x) then transfer to my laptop (the one I use all day).
    Regards.

    There is a way to see the API javadoc without the key. (but its a bit wierd)
    1. Go to a managed page bean or a managed session bean etc.
    2. Inside any method, type getBean( (no more, no less)
    3. Press Ctrl-Space. A window with the definition of getBean in com.sun.jsfcl.app.FacesBean will open.
    4. In the top of border of the popup, there are two buttons (a blue and a brown one)
    5. Click the blue one (if you hover your mouse over it, it shows "Open Javadoc in browser")
    6. A browser tab opens. Go to the top, and click Frames.
    That's it. The javadoc is open. You can browse it as normal.
    Alternatively, you can just unzip the docs, they are in the file: C:\Sun\Creator\docs\jsfcl-doc.zip
    (Sorry I couldnt resist that)

  • I am trying to store music for two different iPods on the same computer, against two different Apple IDs. When I try and download content from the Cloud I get an error message?

    I am trying to store music for two different iPods on the same Windows 8 computer, and when I try and download content from the Cloud I get an error message. Is it possible to have two different Apple IDs on the same computer?

    Unfortunately you've discovered too late how important it is to maintain an up-to-date backup of your iTunes library (and all other data of value).  You could, before wiping the drive, have considered making use of a commercial data recovery service that could (albeit at considerable cost) have extracted your library from the hard disk, even if virus infected.
    In the absence of that option, you will need to restore the content of your library from its original sources:
    Depending on your location, you may be able to re-download any iTunes Store purchases that are still available on the Store
    Likewise, most digital purchases from Amazon (including auto-rip copies of purchased CDs) should be available from the Amazon Cloud and via the Amazon Music application - the same may be true of other commercial sources for digital downloads
    Content imported from your CDs will have to imported again
    The specific situation that you describe regarding the music imported from your friend's external HDD suggests that either the source is badly organized and/or originates from a source other than iTunes (other media players may use alternative tags for information like artist, title, album, etc. that are not wholly consistent with how iTunes handle these).  Without details of the issues you're seeing it is difficult to suggest a remedy other than going through the media album-by-album, track-by-track, and correcting the inconsistencies.
    In the absence of a backup or access to the original library data there is no option other than painstakingly recreating your library as described above.  As you do so, you'll now realize how important creating and maintaining backups are - in my case I have at all times three separate duplicates of my library, in two different locations, where none is ever more than a week old compared to the content of my master library.

  • Download content on one mac can i reuse for another?

    Where is the downloaded content for the latest GB located?
    can I reuse it?

    No I haven't tried that. What might that do?
    It will download about 5 GB of additional content that has been previously purchased. You can continue working with GarageBand, while the download proceeds, and if you interrupt it, it will resume the next time you start GarageBand.

  • I lost itunes on my computer and lost downloaded content that I payed for. How do I get it back?

    I lost itunes on my computer and lost downloaded content that I payed for. How do I get it back?

    When you say that you lost iTunes do you just mean the program or your content ? Have you checked to see if the content is still on your computer but not in iTunes ?
    If not then do you not have a backup of your purchases on, for example, external drives or CDs or DVDs ? If you have then you can copy that onto your computer and add it back into iTunes. If you havn't then if they are still available in the iTunes store (and content is occasionally removed so you should make/maintain your own backups and not rely on re-downloading) and if you use the same iTunes account as you originally used to purchase them, then you should be able to re-download apps and ibooks, and if you are in the US music and TV shows, for free : http://support.apple.com/kb/HT2519 . If you are not in the US and you want to re-download music or tv shows then you can try contacting Apple and asking for a re-download, but they are under no obligation to let you : http://www.apple.com/uk/support/itunes/contact/

  • API for Content Repository Connector???

    Hi,
    Are public APIs provided for Content Repository Connector (for EMC Documentum)? Are there javadocs available for the same? We have installed the trial version of Livecycle ES(turnkey installation). We haven't been able to find the APIs for store and retrieve content using the content repository connector in the following link :
    http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/javadoc/index.html
    Can someone provide the pointers for the same?
    Thanks

    The APIs you use are the Repository APIs. It does not matter what the back end is - you use the same Repository APIs to write content to it.

  • What HTTP caching headers will prevent iPhoto from re-downloading each image in a "Photo Feed" every time it checks the feed for new content?

    I've noticed a practical issue with iPhoto's File->"Subscribe to Photo Feed..." feature.
    Every time that iPhoto checks a subscribed RSS Photo Feed for new content it will re-download each and every photo in the feed.  This occurs even if iPhoto has already downloaded each image, they all have unique GUIDs set, and no content in the feed has changed since the last time it polled for it.
    My best guess is that this happens if the server offering the feed does not produce the proper cache-control parameters in the HTTP Headers that are sent by the server when the RSS feed is accessed by iPhoto.
    Does anyone know what parameter/value pairs need to be set in the HTTP headers to prevent iPhoto from re-downloading RSS enclosures that it already has?
    This is a very practical problem for feeds with a large number of photos of large file size.  Besides the obvious massive waste of bandwidth, the user receives an annoying error whenever they try to quit iPhoto before the feed and all of it's images have been re-downloaded yet again.

    Here is an example of the HTTP headers for two of the images in the feed.
    Any red flags in there that you think might be causing iPhoto to think it needs to re-download the images after it's already downloaded them once?
    HTTP/1.1 200 OK
    Content-Length: 1251893
    Date: Fri, 27 Jan 2012 15:37:49 GMT
    Server: Apache
    Set-Cookie: PHPSESSID=1b9d47ae170ba8c0a088ab7124a1677e; path=/
    Expires: Mon, 24 Jan 2022 15:37:49 GMT
    Cache-Control: max-age=315360000,public
    Pragma: public
    Last-Modified: Thu, 26 Jan 2012 23:34:38 GMT
    Accept-Ranges: none
    Connection: close
    Content-Type: image/jpeg;
    HTTP/1.1 200 OK
    Content-Length: 744151
    Date: Fri, 27 Jan 2012 15:39:01 GMT
    Server: Apache
    Set-Cookie: PHPSESSID=086c112f99ccecc266a47d66d6b47733; path=/
    Expires: Mon, 24 Jan 2022 15:39:01 GMT
    Cache-Control: max-age=315360000,public
    Pragma: public
    Last-Modified: Thu, 26 Jan 2012 02:54:40 GMT
    Accept-Ranges: none
    Connection: close
    Content-Type: image/jpeg;

  • Receiving error of "an error occurred downloading content. Try again later. It's been doing that for a week but I'm able to watch other items such as YouTube etc

    Receiving error of "an error occurred downloading content. Try again later. It's been doing that for a week but I'm able to watch other items such as YouTube etc

    I posted the same sort of problem in the thread
    https://discussions.apple.com/message/15562522#15562522
    I noticed in my instance that it is HD content that is giving me the same problem, but Standard Definition (SD) content downloads and plays no problem.
    Would this be the same with you? Have you been able to download a play an HD rented movie?

  • Where can I download the JMS C API for WLS 12c?

    Where can I download the JMS C API for WLS 12c? It doeesn't appear to be bundled with the standard or supplemental WLS zip files, nor obvious as a separate download bundle. Searching oracle.com finds plenty of documents which reference its existence, but not how to obtain it (unless I missed something). Pointers appreciated, thanks.

    Thanks. Unfortunately, that's just a reference to the documentation. As I said, there's lots of reference to the C API in the documentation but I need the source code (I have an existing application running against WLS8.1/Solaris that I want to port to WLS12c/linux).

Maybe you are looking for

  • Battery and Icon Issues

    My battery is not holding a charge and shuts down when unplugged from the charger. In addition the icon at the top of the screen shows an X in the battery icon. When placed on percent or time remaining it still only will show the X. The computer is l

  • Hi, I'm an eBay seller and save old eBay auction files to my hard drive for future refence. Firefox no longer opens these files correctly (see below).

    Hi, I'm an eBay seller and save old eBay auction files to my hard drive for future refence. These files which all use the same name but are saved in a different folder for each eBay auction no longer open correctly -- much of the eBay auction text in

  • Selection tool not working and cannot select layers

    Just loaded up cs5 w/ indesign and tried to start using indesign. To my dismay the selection tool and the layers will not high light when pointed to or work when clicked upon. these are the only tool i've found not to be working so far. 

  • Handling line items in bdc

    hi,please tell me how to handle the line items i.e the header data and item data in bdc? provide me a clear vision?

  • Output Issue

    Hi Guru's Here we r facing problem while doing output in sales order I configured everything but we came to know from our abaper that there is one function module is missing That is RV_Message_functional module something Could u please light on it Th