Upload HTML document...

When I try to upload a HTML document into a folder using Upload iView everything works fine and the portal reports "... document uploaded", but the document does not appear inside the folder. I guess it gets deleted immediately. Strangely, this problem
applies only  to  HTML documents. Is it because of some content translation malfunction?
Thank you for your comments.

The problem is solved. It was because of a repository service with the code
if (resource.getContent().getContentLength() < 0)
  resource.delete();
Somehow, this statement always returned -1 for HTML files (some filter probably is screwed up!)
I changed it to:
if (resource.getUnfilteredContent().getContentLength() <=0)  ....
Regards.

Similar Messages

  • Uploading External Documents (*.doc, *.pdf, *.html) using JSP, Servlets, JDBC

    I would like to upload external documents to an Oracle 8.16 db without using agents or interMedia.
    Documents can range from *.doc, *.pdf, *.html and so forth. Ive been all over OTN and all I keep finding are examples on uploading Audio, Video or Image data - which is fine.. but damn, can we get a couple "Real World" examples in there?
    Im even looking at iWorkplace which is excellent.. but a little out of my league when it comes to uploading external documents. But that's exactly what Id like to do. The documentation on this issue is very scarce - Please help.
    Any help in this matter would be greatly appreciated.
    Many Thanks in Advance.

    Is anyone having problems loading text files using this routine? I can load a file with this, but even though the table contains a CLOB, the file is uploaded as binary and one only sees a series of question marks when looking at the CLOB. So, basically, the file appears to be converted somehow from text to binary. Any thoughts? I'm using 8.1.6.0.0 on Sun Solaris 2.7. character set in the database is UTF8.
    Thanks.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Rick Post:
    Steps you need to follow are:
    1. Create a table to hold the documents
    CREATE TABLE XML_DOCUMENTS (
    DOCNAME VARCHAR2(200) NOT NULL,
    XMLDOC CLOB,
    TIMESTAMP DATE
    2. Create a directory
    CREATE OR REPLACE DIRECTORY bfile_dir AS /private1/LOB/files;
    3. Grant READ privileges on the directory to the appropriate user
    GRANT READ on bfile_dir to SCOTT;
    4. Create a procedure
    CREATE PROCEDURE insertXmlFile( dir VARCHAR2,
    file VARCHAR2,
    name VARCHAR2 := NULL) IS
    theBFile BFILE;
    theCLob CLOB;
    theDocName VARCHAR2(200) := NVL(name,file);
    BEGIN
    -- (1) Insert a new row into xml_documents with an empty CLOB, and
    -- (2) Retrieve the empty CLOB into a variable with RETURNING..INTO
    INSERT INTO xml_documents(docname,xmldoc) VALUES(theDocName,empty_clob())
    RETURNING xmldoc INTO theCLob;
    -- (3) Get a BFile handle to the external file
    theBFile := BFileName(dir,file);
    -- (4) Open the file
    dbms_lob.fileOpen(theBFile);
    -- (5) Copy the contents of the BFile into the empty CLOB
    dbms_lob.loadFromFile(dest_lob => theCLob,
    src_lob => theBFile,
    amount => dbms_lob.getLength(theBFile));
    -- (6) Close the file and commit
    dbms_lob.fileClose(theBFile);
    COMMIT;
    END;
    5. Execute the procedure
    INSERTXMLFILE('bfile_dir', filename, 'description');
    Good Luck!
    <HR></BLOCKQUOTE>
    null

  • How to upload html file document with his.files

    i can upload only one file and i can't upload html file with his images or some more pages
    index.html
    chapter1.html
    chapterN.html
    I see this problem so: upload zip file and extract to os(i use linux) and saved link to his index.html.
    IS IT POSSIBLE.
    Thanks.
    Sorry for my english.

    The simplest way to handle this would be to Upload the  page and files to a  remote server space and send your email buddies a link to the site.   Barring that....
    How to Code HTML Emails
    http://www.sitepoint.com/article/code-html-email-newsletters/
    Use  inline CSS styles for fonts and background colors.  Use Tables to hold your  page elements.  Use absolute URLs to images hosted on your web server because attached images may not get through. Give  people who can't see your HTML page in their email client a link to the HTML  page on your web server.
    Download some HTML Email Templates from the links below  to help you get started.
    Mail Chimp
    http://www.mailchimp.com/resources/html_email_templates/
    Constant  Contact
    http://www.constantcontact.com/email-marketing/html-email-templates/index.jsp
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • How can I embed a HTML document onto my webpage?

    What I am trying to do: I am trying to make an image that has links to urls from different parts of the image.
    What I have done so far: I have built a photoshop image to embed on my webpage, following the instructions offered by many online forums, but cannot actually embed it as it isn't a url.
    Firstly, I sliced up an image, adding url's and alt tage etc to each slice. Then I did:
    File > Save for web > (Prest: JPEG High) > Save > (entered my file name) Format: HTML and Iamges > Save
    When I locate my file where I saved it, it has been saved as a Chrome HTML Document, but I can't then embed this on my website, using the 'embed code' tool I normally use. I presume this is because it doesn't begin with http:// ?
    Here is the HTML document I have made: file:///C:/Users/Daniel/Desktop/UK%20map%20interactive/Afternoon/UK-map-locations.html
    (If you can see this) This is the image I want and the links are working too but it's getting this onto an existing webpage.
    Other pages I have seen have talked about iamge maps, but I take it using the slice tool is better for what I am trying to acheive?
    Any suggestions/help would be greatly appreciated.

    One: Users can't see links on your local desktop. You would have to upload the files somewhere. Two: Images generally don't contain links. URLs are meta information build around the image in HTML. Three: Because of the previous point, whether you use sliced images or an image map doesn't matter, if you have no way of inserting the information into the native HTML structure of the web pages. If at all, you would open the HTML file in a suitable editor like Dreamweaver (or even a basic text editor) and copy&paste it into the web page sourcve code, but you'd still have to upload the image(s). The rest we can't know. You have not provided any link to the web site or told us which hosting provider you use. From your description it sounds like one of those "free" providers that restrict user's options to customize to the bare minimum and the rest is based on templates and plastered with advertising. In any case, the solution is not in Photoshop and you would have to read up on web design basics, HTML, CSS and al lthat on a more general level or review your hosting provider's guides on how to set all this up.
    Mylenium

  • Creation of fillable forms from existing HTML documents

    Hi All,
    I know this is doable, but I was wondering if someone could point me in the right direction or perhaps to an existing HowTo.
    I recently started working for a company in which part of my job duties includes the creation of new users and deauthinication of terminated user accounts. The company uses specific forms for accomplishing this that are filled out from templates in Outlook 2010, i.e. New Items-->More Items-->Choose Forms. This provides the users with a list of forms. By clicking on one of these forms it opens an e-mail that the requester populates.
    The issue we are having with this is that sometimes they use the form, and/or don't provide the right information. They will modify the form and delete certain row or columns etc. They also have a tendency to not provide all the mandatory information.
    I can take these forms and save them as HTML document from Outlook. What I would like to do is create them as fillable PDF forms with some fields as drop downs, other as mandatory and once they have completed the form correctly, (at least to the extent I can make it fool proof), then they can click on a button that will allow them to e-mail the completed form to the desired recipient admin group via outlook.
    The current method is the requester fills out the form then e-mails it to say their manager, who then types approved and sends it back, the requester then sends it to the next person until all the needed "approves" are received then it gets forwarded to a group who is basically the clearinghouse for all access requests who then send it to the appropriate systems admin group emails for completion. Once complete the admins do a reply all with users created or deauthinicated etc for systems xxx and xxx as requested at the top of the e-mail. 
    I want to make this process more standardized to prevent users from not completing the form correctly or modifying the Outlook form to their own interpretation of how the form should be or leaving out mandatory information.
    I would also like the form to automatically name itself with the employee number of the requestor with the date and time appended, i.e RM74651_10202014_0917 when they go to send it and place a copy of the completed form in a pre-specified network folder.
    Any information, suggestions or HowTo would be greatly appreciated.
    Thanks
    Gordon

    Hi Surabh,
    Use HTML codes in notepad. Use the notepad to upload the file and create mail form. You should follow W3C standard. Refer note 1131645.
    BR, Sathish R

  • How to display word document as a HTML document in portal

    Hi
    I developed a portal application in that i am displaying word document using IFrames, from my application i am uploading word document and saving those document in KM
    Requirement is that i need to provide an option to show this word document in html.
    Thanks
    Rudradev.

    Hi Glenn Mendonca
    I thing it is possible
    Even in SDN search results page, we have option called "HTML version" link
    to see the search document in HTML
    see the below url
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.highlightedcontent?documenturi=%2fforums%2fsdn_forums%2fthread%7b74687265616449443d39313633%7d.jspa
    i hope passing doucment as a query parameter to com.sap.km.cm.highlightedcontent?DocumentUri=
    might solve this
    pls give your inputs
    Thanks

  • Upload / Download document to KM Content Server from WebDynpro Application

    I have a requirement where I need to upload / download document into / from KM Content Server from my WebDynpro Application.
    Is it technically possible and if Yes, can I get any Sample code for this.

    Hi Tahzeeb,
    first of all i would point you to the JavaDocs for KMC API.
    https://media.sdn.sap.com/javadocs/NW04/SPS15/km/index.html
    And here is a small example of reading and storing KM resources.
    For reading:
         * Returns a resource as an InputStream from the KM repository
         * at the given path. The IUser is needed for authorization.
         * @param user      IUser for checking authorisation.
         * @param resPath   Path to the KM resource.
         * @return          Requested resource as a stream.
        private InputStream getKmResource(final IUser user, final String resPath)
            throws ResourceAccessException {
            try {
                final IResourceFactory factory = ResourceFactory.getInstance();
                final RID rid = RID.getRID(resPath);
                final IResource kmResource =
                    factory.getResource(
                        rid,
                        new ResourceContext(getDeprecatedIUser(user)));
                if (kmResource == null) {
                    throw new ResourceNotFoundException(
                        "KM resource not found: " + resPath,
                        resPath);
                return kmResource.getContent().getInputStream();
            catch (WcmException e) {
                throw new ResourceAccessException("Error accessing KM resource: " + resPath, e, resPath);
    And for writing:
         * Stores a resource in the KM repository at the given path with the given name and mimetype.
         * Content is taken from the given inputstream.
         * @param user          IUser for checking authorisation.
         * @param resName   Name of the resource
         * @param resPath     Path to the resource
         * @param mimeType MimeType of the resource
         * @param inputStream  Resource content
         * @throws ResourceAccessException
        private void putKmResource(
            final IUser user,
            final String resName,
            final String resPath,
            final String mimeType,
            final InputStream inputStream)
            throws ResourceAccessException {
            try {
                final ResourceContext rContext = new ResourceContext(getDeprecatedIUser(user));
                final RID rid = RID.getRID(resPath);
                final ICollection kmCollection =
                    (ICollection) ResourceFactory.getInstance().getResource(rid, rContext);
                if (kmCollection == null) {
                    throw new ResourceNotFoundException(
                        "KM resource not found: " + resPath,
                        resPath);
                else {
                    IContent kmContent = new Content(inputStream, mimeType, -1);
                    IResource kmResource = kmCollection.createResource(resName, null, kmContent);
            catch (ResourceException e) {
                throw new ResourceAccessException("Error accessing KM resource: " + resPath, e, resPath);
            finally {
                try {
                    inputStream.close();
                catch (IOException e1) {
                    throw new ResourceAccessException("Error closing InputStream when accessing " + resPath, e1, resPath);
    Hope that helps for a start.
    Best regards,
      ok

  • HTML document in portal

    Dear friends,
    I got an issue like, my client need to put their HTML document into the portal, its around 300 files. So how to put htis html document into portal. Is it possible to put the html document or not, If not how to make appear HTML document in portal.
    Kindly help me
    Regards
    Suresh

    hi
    first you need upload the html files int oKM content then you need  to create a iviews  based on this content present in KM content
    step 1: uploading the html files
    go to content administration->KMcontent->at the right hand side select the document folder->
    here u create a new folder by selecting folder menu->new->folder
    then your folder will be created under documents folder
    doble click on this (now you under documents/your folder path)
    under you folder
    select folder menu->new->upload
    give  name(ex new.html ),description, and select browse to upload the file
    follow the same procedure for all the html files
    this indicates the u have uploaded all the files properly
    now creating a ivews based on the html documents uploaded in KM content
    content administration->portal content->select your folder->right click ->new->iview->select KM document iview template->give iview name &id etc
    then open the iview for editing
    there u can find a property called " path to document" give the value as " \document\<your folder name where u uploaded the html files under KM content>\file name(ex:new.html>
    like that u can create all the iviews based on the html documents stored under km content
    rgds
    srinivas

  • Upload multiple documents option is not visible for one user in SharePoint 2007.

    Hi,
    For one user Upload multiple documents option is not visible.
    We are using SharePoint 2007 environment.
    User is using IE 9 32 bit,Office 2010.
    I did repair office 2010.
    Active x controls are enabled.
    Please anyone help me on this.
    Thanks,
    Ashok

    Hi,
    According to your post, my understanding is that after client upgraded to Office 2013 the option for Upload multiple document was grayed out.
    I try to reproduce the issue in my environment, however everything works well.
    My configuration of system is:
    Windows 8.1;
    IE11;
    Office 2013 32bit.
    Please repair the Office 2013 to check whether it works.
    In addition, there are many thing you need to check. Please refer to:
    http://sharepointknowledgebase.blogspot.com/2013/09/upload-multiple-documents-is-disabled.html
    Here is a similar thread for your reference:
    http://social.msdn.microsoft.com/Forums/en-US/1a5af332-ed21-41ee-bf64-9122a7439623/sharepoint-not-activating-stsuplddll-upload-mutliple-documents-greyed-out?forum=sharepointgeneralprevious
    More information:
    "Upload Multiple Documents" is disabled in Document Library
    SharePoint 2010 : How to Enable Uploading Multiple Documents Functionality
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • How to handle the Non HTML Documents in BSP

    Hi All,
    I want to upload the file which contains the  non HTML data.
    I am using the browse button and from the destop i should downloap a file which is non HTML document.
    It would be appriciatable if you send me the code.
    Iam using the html:fileupload tag
    Thanks,
    Mahalakshmi.K

    Hi Rajdeep,
    You can use the below tag which is used to change both the font and color of the text.
    <font face="Book Antiqua,Garamond" size="3" color="red"> YOUR TEXT HERE </font>
    This will work for the normal text which is given between the <font> </font> tags. but not directly with the Text View tag.
    You can choose this as an alternative.
    Thanks,
    Ansar
    Edited by: Ansar Hussain on Dec 3, 2008 9:25 PM

  • HTML document sizing

    Can I upload an HTML document that isn't sized 1024x768 px? For instance, could I upload a document sized 1024x900px and allow for vertical scrolling? This is specifically for a horizontal-only iPad publication. Thanks!

    When you import an HTML document, you can set it a Smooth Scrolling option.

  • HTML document on initial screen does not display

    Hi,
    In thread Links on Login Screen
    there is a description on how to display a html document in stead of a image on the initial SAP screen.
    I tried this (uploaded a html document, set MIME editor, and customized the SSM_CUST table),
    just to displaying a simple text like "Hello World", but however i keep getting a blank screen without anything in it on the initial screen.
    If I display the uploaded html file in transaction smw0 (selecting it, and pressing the glasses),
    a browser window opens and shows the expected content.
    Any idea what i have missed, or what i can check?
    Thanks
    Rolf

    Is it a blank html screen that you uploaded?
    Try crating a html page with some content and then try to configure it.
    Also, did you follow all the steps as -
    Change the logo in the right-hand side of the initial screen
    -   To put your company logo in the right-hand side of the initial
        screen:
        Put your picture in the database with the transaction SMW0
        "Binary data" options, e.g. in ".GIF" format.
        <b>Put a record with the picture name in the key "START_IMAGE" of
        the table SSM_CUST in the View maintenance transaction SM30.</b>
    -   You can adjust the picture to the window size automatically or
        center it in the right-hand side of the initial screen    
        ("RESIZE_IMAGE" "YES" or "NO" in the table SSM_CUST).
    -   You can deactivate the picture globally so that noone sees it
         with "HIDE_START_IMAGE" "YES" in the table SSM_CUST.
         User-specific picture display settings are then ignored.

  • Why is dreamweaver cs6 saving my files as a firefox html document?

    Hi, I am using dreamweaver cs6 on win xp sp 3 and it keeps saving my files as a firefox html document and connot figure out how to stop this as i need to get on to my ftp to upload files. It also loaded my site files from dreamweaver cs 5 as a firefox html document. I am running firefox ver 13.0.1. Any Help would be usefeful. I tried google searching and found nothing. And the adobe general help didn't wok either.

    Firefox is probably your default web browser which launches anytime you click on an .htm or .html file.
    If you want HTML files to launch inside Dreamweaver instead of Firefox, open your file manager (Windows Explorer), and change file associations for .html & .htm files.  When you do this, the icon next to those files will change from FF to DW.
    Nancy O.

  • Preview of HTML document in KM Navigation iView

    Hi all!
    I need your help. I would like to create layout set which would be able to display tree on the left side and preview of HTML document on the right side of content area. If I click on HTML document in the tree I need to see his preview. I thought that I can resolve this by "Explorer and Preview" profile. But unfortunely it doesn't work. Has someone any experience with the profile? Or can someone advice to me how create new layout set?
    I found this links, but they didn't help me much.
    http://help.sap.com/saphelp_nw04/helpdata/en/4e/02573d675e910fe10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/96/248cd68f23774fb74dfc18a2994d8f/frameset.htm
    Thank you in advance for any reply!
    Regards
    Zbynek

    Hi Saurabh,
    Using the presentation settings in Details can sometimes
    be tricky since it remembers the context of which iView
    called it. Make sure you open the details out of the iView
    in which you want the customizations to be in effect.
    Otherwise, changing it in the configuration is a
    bit more straightforward in its effects.
    Regards,
    Darin

  • Print html document

    Hi, I'm trying to print a html document with this following java code but doesn't works:
      public void onActionPrintEncuestaPDF(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionPrintEncuestaPDF(ServerEvent)
         try{
              Robot robot = new Robot();
              // Ctrl+P
              robot.keyPress(KeyEvent.VK_CONTROL );          
              robot.keyPress(KeyEvent.VK_P );          
              robot.keyRelease(KeyEvent.VK_CONTROL);
              robot.keyRelease(KeyEvent.VK_P );
              Thread.sleep(500);
              //Alt+U
              robot.keyPress(KeyEvent.VK_ALT );
              robot.keyPress(KeyEvent.VK_U );
              robot.keyRelease(KeyEvent.VK_ALT );
              robot.keyRelease(KeyEvent.VK_U );
              Thread.sleep(500);
              //entrée
              robot.keyPress(KeyEvent.VK_ENTER);
              robot.keyRelease(KeyEvent.VK_ENTER );
              Thread.sleep(500);
         catch(Exception e){  }
        //@@end
    This is not working because java.awt.Robot is a part of AWT package and intended for the client site, how I can make an action that when the
    client push the print button. Print the html document automatly.
    Regards,
    Gabriel

    I create into KM Content on portal a file called print.html and I put the following code:
    &#65279;<html>
      <head />
      <body onLoad="window.parent.focus(); window.parent.print();">
      </body>
    </html>
    Because window.paren.print(); printed the code of actual iFrame. And into Web Dynpro I created a button that call the following function.
    public void onActionPrintEncuestaPDF(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionPrintEncuestaPDF(ServerEvent)     wdContext.currentPrintElement().setAtrURL("/irj/go/km/docs/documents/print/print.html");
       //@@end

Maybe you are looking for