Cannot download .pdf files and word docs from KM using Web Dynpro

Dear Portal Gurus,
Using KM API, I am trying to download, documents from KM in my Web Dynpro Application. But .pdf files and word docs with screenshots are not getting retrieved from KM. Word docs opens with no content and Adobe opens with an error saying "Either it is a damaged file or It is not a supported file".
I am using the following KM service to download the content.
public byte[] retrieveResourceInBytes(String strRid){                    
/////  after a few lines  ////
     if (this.loggedOnUser.isAuthenticated()) {
// create a resource context with the authenticated user
     rContext = new ResourceContext(this.loggedOnUser);
// create a RID to handle a resource
      aRid = RID.getRID(strRid);
          try {
          // get an instance of a resource factory
                 final IResourceFactory aResourceFactory = ResourceFactory.getInstance();
// retrieve a folder/file  with context
                                             aResource =  aResourceFactory.getResource(aRid, rContext);
     if(aResource.isCollection()) {
                                                                  aResource = (ICollection) aResource;
                                                  IPropertyMap objIPropertyMap = aResource.getProperties();               
                                             IMutablePropertyMap objIMutablePropertyMap =objIPropertyMap.getMutable();
                                             objHashMap = new HashMap();
     if (aResource != null) {
                                                                     IContent oldContent = aResource.getContent();
                        InputStream objInputStream=oldContent.getInputStream();
             byte[] theBytes = new byte[objInputStream.available()];
             objInputStream.read(theBytes);
                    return theBytes;
     } //  catches all the exceptions here///
Could you please advise if I am doing something wrong else could you please advise me for any corrections which would help?
Thanks a lot in advance,
Zeena
Edited by: Zeena Ali on Mar 25, 2009 8:13 AM

On Apr 10, 2013, at 4:10 PM, AdityaKalania wrote: Replies in RED below:
Re: Cannot download pdf files from web sites
created by AdityaKalania in Adobe Reader - View the full discussion
Hi,
Which web browser are you using to view the PDF? Safari 5.1.8
When you open the PDF in Adobe Reader add-in you will either see a floating toolbar
http://forums.adobe.com/servlet/JiveServlet/downloadImage/2-5224223-317859/430-90/floating +toolbar.JPG
or a normal toolbar
http://forums.adobe.com/servlet/JiveServlet/downloadImage/2-5224223-317860/450-11/normalto olbar.JPG
both the toolbars have save button, use the button to save the file locally. I do not see these toolbars. I do, however see this
and it works! Thanks
Hope this will help you.
Thanks
Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5224223#5224223
Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5224223#5224223
To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5224223#5224223. In the Actions box on the right, click the Stop Email Notifications link.
Start a new discussion in Adobe Reader by email or at Adobe Community
For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

Similar Messages

  • Still cannot download pdf files to word

    can someone help me?
    i keep getting an error when trying to download pdf files to word in emails

    Hi Rochelle02,
    You have an active Adobe PDF Pack subscription, which allows you to convert PDF files to Word format. To convert your files you log in to https://cloud.acrobat.com/exportpdf with your Adobe ID and password.
    Are you trying to send files using Adobe Send? I don't see that you have an account for that.
    If you're trying to email from another, non-Adobe application, and are unable to, you would need to contact the manufacturer of your email client.
    Best,
    Sara

  • I cannot download PDF files and have many other problems with updates since 3.6.18 are you guys going to fix or should I switch to IE?

    Hi Guys,
    I have had heaps of trouble with plugins and add on's since using upgrades after 3.6.18. Now I cannot download PDF files!
    Are you Guys going to fix what used to be a good browser or do I have to use IE?
    Please keep it simple.
    John Smith

    -> go to Help Menu -> select "Restart with Add-ons Disabled"
    Firefox will close then it will open up with just basic Firefox. Now do this:
    -> go to Tools Menu -> Add-ons -> Extensions section -> REMOVE any Unwanted/Suspicious Extensions (add-ons) -> Restart Firefox
    -> Update ALL your Firefox Plug-ins https://www.mozilla.com/en-US/plugincheck/
    -> go to View Menu -> Zoom -> click "Reset"
    -> go to View Menu -> Page Style -> select "Basic Page Style"
    -> go Tools Menu -> Clear Recent History -> '''''Time range to clear: select EVERYTHING''''' -> click Details (small arrow) button -> place Checkmarks on ALL Options -> click "Clear Now"
    -> go to Tools Menu -> Options -> General -> '''''When Firefox starts : select "Show My Home Page"''''' -> Type the address of the website which you want to be your HomePage e.g. http:www.google.com -> click OK
    You can enable the Trustworthy Add-ons later. Check and tell if its working.

  • This operation has been canceled due to restrictions in effect....opening Word docs from link in web page

    It's the ahla.org website.  It has both pdf files and Word docs.  The pdf links open in the browser or Adobe but the Word doc links open the option at the bottom of IE11 that just says "Open" or "Cancel".  When I choose
    open, it gives the error about policy restrictions or something similar depending on if it's Word 2007 or 2013.  If I could even find an option to have it "Save" and open after download that would be helpful.  I can right click the link
    and choose save as but this is an office full of attorneys and they can't find the download folder afterwards.
    This isn't the issue with Chrome being installed/uninstalled because it does it on computers where it's never been installed.  It's not a group policy setting as it does it at the office or home PC.

    Hi,
    ahla.org redirects to
    https://www.healthlawyers.org/Pages/home.aspx
    ... its a mess
    eg. the login link is http://admin.healthlawyers.org:8080/_login
    any error message with "Restriction" in it is from Group Policy.
    what you can try
    Tools>Internet Options>Security tab, click "Reset all zones to default"
    Trusted Sites icon, sites button, remove ANY reference to
    http://ahla.org or http(s)://www.healthlawyers.org (IE has security restrictions preventing navigation between sites of lower integrity).... Other userAgents do not use the same security model as MSIE.
    the https protocol (secure web sites) works in any IE security zone.... If a site uses https, you do not have to place it in the Trusted sites list. It should work (encrypt) just as well in the internet zone (default).
    Hover the mouse over the pdf/doc hyperlink... its uri will appear in the status bar or at the bottom of the IE window... note its address. IT MUST point to the healthlawers.org domain. It should also be using the same protocol as the current web page. If it
    uses the https protocol, check "Internet Options>Advanced tab, uncheck "Do not save encrypted files to disk"
    As I said.... it is likely that the above settings are controlled by Group Policy.
    Rob^_^

  • I bought your program to convert PDF files to WORD doc. files. I did this and when I send the files as an attachment to recipients the recipients say the attachment is blank! I want a refund!!

    I bought this Adobe program to convert PDF files to Word doc. files so I could e-mail them as an attachment to people who do not have Adobe Reader. When the people got my e-mail with the attachment and opened it. The attachment was BLANK!! Is there a way to correct this?? or should I just get my money back and cancel this program?

    Hi bogy,
    How very frustrating! I'm sorry that your email attachment was blank. I'm sure this is a silly question, but did the Word file display as expected on your own machine? If not, then the issue is quite likely with the conversion from PDF to Word (but what you describe isn't a common issue that we're hearing about).
    If it looks OK for you, then I suspect the issue lies outside of ExportPDF. If the Word doc is blank when you open it, then please tell me a bit more about the PDF that you're trying to convert and we will take it from there.
    Best,
    Sara

  • Cannot download pdf files from internet site with either acrobat pro X or pro XI on windows 8 comput

    cannot download pdf files from internet website with either acrobat pro x or proXI on windows 8 computer.  windows 7, no problem.

    Hi valerieross,
    Acrobat can be used to view pdf's or edit pdf's not download them.
    Check your browser settings.
    If you are referring to viewing pdf's in browser, then please check the following : http://helpx.adobe.com/acrobat/kb/cant-view-pdf-web.html

  • Cannot download pdf files with adobe

    I still have the same problem I had a month ago I cannot download pdf file from internet sites screen just goes black
    I have recently upgraded software to lion I have the latest adobe software installed still no joy.
    Was never a problem in the past on my IMac

    In the Finder, select Go ▹ Go to Folder... from the menu bar, or press the key combination shift-command-G. Copy the line of text below into the box that opens, and press return:
    /Library/Internet Plug-ins/AdobePDFViewer.plugin
    If a Finder window opens with that item selected, delete it, then quit and relaunch Safari. Otherwise post again.

  • HT5701 Cannot download pdf files with Safari 6.0.4?

    Cannot download pdf files with Safari 6.0.4

    Back up all data.
    Triple-click the line of text below to select it, the copy the selected text to the Clipboard (command-C):
    /Library/Internet Plug-ins
    In the Finder, select
    Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens (command-V), then press return.
    From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari, and test.
    The "Silverlight" web plugin distributed by Microsoft can also interfere with PDF display in Safari, so you may need to remove it as well, if it's present.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • Cannot download Mp3 files and some other format

     Hi people,
    I cannot download Mp3 files and many other files. I cannot update my Ovi Store app and pretty much everything else. I can download pdf and zip using opera but almost everything else (including mp3 and sis files) redirects to Nokia browser which just freezes no download. I have tried another same model phone E72 and no problem.
    It seem my browser is corrupt and can't find way to reinstall.
    Also why don't nokia let us download with browser of our choice? I would rather use opera than inbuilt one
    Stefano

    Hi evstevemd
    Apart from loss of data issue in the circumstances you may have to either "hard reset" or re-install existing firmware to eliminate possible software corruption.
    Happy to have helped forum in a small way with a Support Ratio = 37.0

  • Macbook air cannot download pdf files

    I have MacBook Air and it cannot download pdf files from online.  When the page shows up it is black and blank so there is no content to click to request download and cannot be Saved As or printed and changed to pdf.  Help!!
    jrwilkens    

    Hi ..
    Quit Safari.
    Open the Finder. From the Finder menu bar top of your screen click Go > Go to Folder
    Type this exactly as you see it here:
    /Library/Internet Plug-Ins
    Click Go
    Move the Adobe PDF browser plugin to the Trash.
    Relaunch Safari to test.

  • Is there a way to change PDF files to Word Doc on my iPad? I subscribed to it.

    I just subscribed the converting PDF file to Word doc. But I would like to use my iPad for this. Does anyone know how to do it?

    For starters, you can take a look at the Help document in Adobe Reader for iOS.
    Go to Reader's home screen.
    Tap Help (in the lower left corner).
    Tap Handbook (in the right pane).
    Select "Acrobat.com and the Cloud".
    The page describes various operations (Logging in, Exporting PDFs, etc.).
    Please let us know if you have any specific questions.

  • Cannot download pdf files.When attempt to download, screen turns black

    Cannot download pdf files. When attempt to download, screen turns black

    I have had this issue for a while ago. Very disappoointed that Mozilla had not addressed this .
    I have switched to using Safari and Chrome now as they do not have these issues.

  • How do I convert a pdf file to word.doc?

    How do I convert a pdf file to word.doc?

    Hi patsy
    If you purchased ExportPDF (for converting PDF files to Word or Excel), check out Getting Started with ExportPDF for easy-to-follow instructions.

  • I cannot convert pdf file into word

    i cannot convert pdf file into word i have paid for it

    Check the security settings for the purchased PDF.
    Reader cannot convert to Word.

  • As of yesterday I cannot download pdf files. Instead I get a pop up box that says CONVERT and gives me dozens of programs. How do I just download without this box stopping me?

    i click on any pdf file and instead of it just downloading and opening automatically as it has always done - instead it shows the download box and then another pops up titled CONVERT and then gives me a million different options - word / excel / every version of every one! DOS. even if i pick one it comes up in computer language. As of 2 days ago it worked properly and in Safari or another program I can open the pdf. What's happening? HELP

    You can try "Reset Download Actions"
    * http://kb.mozillazine.org/File_types_and_download_actions

Maybe you are looking for