Want to upload PDF file in UI, read the content of PDF and Store in SAP DB

Hi Experts,
I have a new requirement in SAPUI5. I want to upload an PDF file using FileUploader component. Now how to validate this thing only for PDF file. User can only upload PDF file.
Next I want to read the content of this PDF file and want to save data in SAP table. For this requirement, how to read the content of that file? After reading how to save the content in SAP table?
To achieve this, how to design the ODATA service?
Any kind of suggestion would be acceptable gratefully.
Thanks in advance...
Regards,
Arindam Samanta.

Hi Peter,
Thanks once again for your kind response.
I am getting the value in SLUG parameter and I can get the value in slug.
Now I am getting errors from front end side, saying -
1.   
sResponse;
"<pre style="word-wrap: break-word; white-space: pre-wrap;">CSRF token validation failed</pre>"
2.POST http://------/CTC_MIBL_17072014/proxy/sap/opu/odata/sap/ZGW_CTC_VEHICLE_SRV/AS_CTC_MIBL_SET 403 (Forbidden)
- Method 'AS_CTC_MIBL_SET_GET_ENTITYSET' not implemented in data provider class.
Below is my code -
// For File up-loader
oFileUploader1 = new sap.ui.commons.FileUploader("upload",{
                name : "test1",
                uploadOnChange : false,
                width : "250px",
                uploadUrl : uploadURI,
                uploadComplete: function (oEvent) {
                                 var sResponse = oEvent.getParameter("response");
                                 if (sResponse) {
                                   //  oUploadDialog.close();
                                     sap.ui.commons.MessageBox.show("Return Code: " + sResponse, "Response", "Response");
// On Submit click
oFileUploader1.insertParameter(new sap.ui.commons.FileUploaderParameter({name: "slug",
   value: oFileUploader1.getValue() }));
  oFileUploader1.insertParameter(new sap.ui.commons.FileUploaderParameter({name: "x-csrf-token",
   value: header_xcsrf_token }));
  oFileUploader1.upload();
Could you please give some idea regarding my above mentioned issues?
Thanks In advanced.
Regards,
Arindam Samanta.

Similar Messages

  • Does Acrobat Pro read the content in pdf file and transforms it?

    Does Acrobat Pro read the content in pdf file and transforms it to xls file without the need for much changes or manual work?

    Acrobat X (Standard and Pro) will save tabular data to XLS or XLSX format, provided it can recognize the table as being a table. If the PDF has missing or incorrect structure tags, Acrobat will try to guess the table layout by the position of text and lines on the page - this works well for basic formatting but if the table has complex styling, spanned cells etc. it can lead to problems.
    Acrobat X will even attempt to export a table within a scanned document, by applying OCR during the export stage - though again this relies on the table being visually identified.
    See http://www.adobe.com/products/acrobatpro/pdf-to-word-excel-converter.html and this article on how to extract one table from a larger document.

  • I'm trying to get a public link to my pdf file? I tried the system's process and the links don't work

    I'm trying to get a public link to my pdf file? I tried the system's process and the links don't work. I can't even copy the links I have to write them down and then enter them. Is anyone else having this problem. I've seen this question a couple times with no replies.

    Hi mariondouglas,
    Do I understand correctly that you've used Send to send a file that you've uploaded to Acrobat.com? What happens when you send to your own email address? Are you able to click the link in that email, and access the file that way?
    If you're unable to copy the email in the browser window after you've generated a public link, please clear the browser cache, and try again. Or, use a different web browser (for a list of supported browsers, see System requirements | Acrobat.com).
    Please let us know how it goes.
    Best,
    Sara

  • Please HELP! i cannot open any Adobe PDF files anymore. i DL the new version XI and since no files h

    Please HELP! i cannot open any Adobe PDF files anymore. i DL the new version XI and since no files have opened - so i recently uninstalled it and re-installed adobe reader 9 but i am having the same problem - no pdf files open and its really causing a problem as i can not open any work documents. please help

    Three things to try (Reader XI)...
    Using Windows Explorer navigate to C:\Program Files (x86)\Adobe\Reader 11.0\Reader, then double-click on Eula.exe and accept the license agreement
    Can you open Adobe Reader by itself?  If so, try disabling Protected Mode [Edit | Preferences | Security (Enhanced)].
    It could even be a malware issue; see http://helpx.adobe.com/acrobat/kb/reader-core-dll-error.html

  • Read China content in JSP and store in Java variable

    Hi All ,
    I have created China language content(BinaryType) using weblogic admin console.
    And I am trying to get the content and to store in a Java Variable .
    Pls suggest me how to read other language content and to store in java variable for manipulation.
    Srinivas
    I am using following lines of code to get content
    <utility:forEachInArray array="<%=newsID%>" id="node" type="com.bea.content.Node">
    INodeManager nodeManager =     ContentManagerFactory.getNodeManager();
         java.io.InputStream is =     nodeManager.getStream(new ContentContext(), node.getId(),
    "News-Content");
    when I am using inputstream "is" to read the china content , its displaying garbage values.

    Hi Rajeev,
    My Content consist of following properties
    News-Author      String
    News-Content      Binary
    News-Id           String
    "News-Content" is Binary Type .I am creating data for this property using Content Editor.
    My data consists of 3 lines of text+image
    data will be:
    author is srinivas
    created on 11th
    content is newscontent
    << inserted image >>
    where << inserted image >> ,is jpeg file.
    I want to read this data in the JSP and store in java variable , so that i can modify 1st two lines and updated data to be displayed in browser..
    I am able to read data , if its a simple text . But it has one image also.
    How to solve this issue.
    Srinivas

  • Itune cannot read the contents of ipad and advice me reset ipad to factory setting

    itune cannot read ipad contents? need solution

    Tap Settings > General > Reset > Erase All Content and Settings.

  • When I want to select multiple files in a row, the click shift method and the click drag method is not working. Is there a setting I need to change and if so how?

    My click then shift+click will not select the multiple files, Is there a setting to change somewhere?

    Click and shift works for me, so this is not a Mavericks bug.
    Try deleting any finder.plist files and restarting.
    To do that, click the desktop so Finder is active, then click on Go in the menu bar. In the dropdown select Library. In that folder look for Preferences. In the Preferences folder there will be at least two files whose names start com.apple.finder.....
    Trash them all and restart.

  • Why can I not open PDF files using adobe reader in firefox?

    When I try to read a PDF file with adobe reader the file looks like it starts to load, I see in the tool bar the page count but the file never opens.

    You can change the action for Portable Document Format (PDF) from Preview in Firefox to use another application like the Adobe Reader or set to Always Ask in "Firefox > Options/Preferences > Applications".
    You can set the pdfjs.disabled pref to true on the <b>about:config</b> page to disable the build-in PDF viewer.
    You can check the value of the plugin.disable_full_page_plugin_for_types pref on the about:config page and remove the application/pdf part if present or reset the pref to the default via the right-click context menu.
    See also:
    *https://support.mozilla.org/kb/view-pdf-files-firefox-without-downloading-them
    Note that your System Details List shows that you have a user.js file in the profile folder to initialize some prefs on each start of Firefox.
    *http://kb.mozillazine.org/Preferences_not_saved
    The user.js file is only present if you or other software has created it, so normally it wouldn't be there.
    You may want to check its content with a plain text editor if you didn't create this file yourself.
    The user.js file is read each time you start Firefox and initializes preferences to the value specified in this file, so involved preferences can only be changed temporarily for the current session.

  • Read the text in pdf file

    Dear all,
    I have checked a lot of post about reading pdf in this forum. However, is it possible to read the text in pdf file. In my case, I need to read the content of pdf to do further process. Could anybody give me some suggestions. Thank you.

    I have a similar problem, can anybody help us....

  • I want to upload CSV file

    Dear All,
    I want to upload excel file in SRM in the format of CSV. GUI_UPLOAD with file type ASC or BIN is showing junk value. Can you please suggest how can I resolve the issue?
    Please help.
    Thanks,
    Atanu

    Hello
    Check this it might help you.
    Fm to convert XSTRING TO STRING in SRM 7.0
    Regards,
    Neelima

  • RE: [Adobe Reader] when i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ? i

    HelloThank's for your helpsI hope this document is helpfulBest Regards,
    Date: Sun, 22 Jun 2014 17:10:17 -0700
    From: [email protected]
    To: [email protected]
    Subject:  when i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ? if you can help me th
        when i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ? if you can help m
        created by Anoop9178 in Adobe Reader - View the full discussion
    Hi,
    Would it be possible for you to share the document?
    Regards,
    Anoop
         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 https://forums.adobe.com/message/6485431#6485431
         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:
         To unsubscribe from this thread, please visit the message page at . 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/thread/416458?tstart=0.

    thank's for reply and your help
    i did the step's that you told me but  i still have the same problem
                                     i have the latest v.11.0.7
    i
    i disable the protected mode

  • I'm not able to open PDF files in Adobe Reader XI.

    I recently updated to Adobe Reader XI and now I can't open any of my PDF documents or PDF e-mail attachments.  When I click on a document I now get a window that asks if I want to allow this file to open.  I click yes and get a monstrousity the likes I've never seen.  It blacks out my screen for a couple seconds and then I get a mixture of my desktop, task bar, and a window wanting to know if I want to open this with Protected Mode disabled.  It only fills 3/4 of the screen, the items all all blown-up in size, and are distorted.  In playing with this I have gotten notes that I have an "Incompatable Application" and "Acrobat failed to connect to a DDS Server".  On occasion I will get an Adobe Reader screen that is completely greyed out with no content in it and after a couple of seconds it goes off.  Other times I got the window about Protected Mode and I've clicked on to disable it but that doesn't work either.  I removed Adobe Reader XI and re-installed Adobe Reader X and I still have the same problem which I did not have before.  I 'm running Windows 7 Professional and have McAfee anti-virus, which I have disbled on one occasion during download and that I still had the same problem.  I went to program files to find the End User License Agreement and try to see if I needed to click on 'Accept" but it tells me the file does not exist.  I even tried using System Restore to take me back to before I did the upgrade to Adobe Reader XI and I still have this problem.  I'm at the end of my knowledge level and because these files are needed in my business I'm only able to operate at about 50%. 

    From: Test Screen Name [email protected]
    Sent: Sunday, August 04, 2013 11:32 AM
    To: gunner0490
    Subject: I'm not able to open PDF files in Adobe Reader XI.
    Re: I'm not able to open PDF files in Adobe Reader XI.
    created by Test Screen Name <http://forums.adobe.com/people/TestScreenName>  in Adobe Reader - View the full discussion <http://forums.adobe.com/message/5565198#5565198

  • Opening PDF Files in Adobe Reader XI directly from SharePoint 2013 Site

    I am trying to open PDF files in Adobe Reader XI directly from a SharePoint 2013 document library using Internet Explorer 11. When I click the file name it immediately opens the file in Adobe Reader, however it is downloading and opening the file locally
    from the Temporary Internet Files location. If I add a comment to the PDF file, and save it will perform a Save As and the location will default to the temporary folder.
    If instead of clicking the file name, I click the ellipses in SharePoint, copy the file URL, and go to Adobe Reader, click File > Open and paste the link into the file name, Adobe Reader will correctly open the file directly from the SharePoint site and
    prompt for "Open and Checkout, Open, or Cancel".
    Is there a way to get it so that when I click the file in IE, I get the same functionality as a File > Open in Adobe Reader?
    Thanks in advance!

    Hi,
    According to your description, you want to open pdf file in the Adobe Reader directly from document library.
    I suggest you do as the followings:
    1. In SharePoint Central Administration site, click Application Management->Manage Web Applications, select the web application for the site. Click Authentication
    Providers, select default zone, and select Yes for "Enable Client Integration?".
    2. click Site Settings-> Site collection features->"Open Documents in Client Applications by Default" click Activate
    3. set the default open behavior for a document library by using the document library settings page.
    4. Enable the “Adobe Arcobat SharePoint OpenDocuments Component”add-on in the IE11.
    5. Add your current site URL to the trusted web sites in IE11.
    There is a similar threads for your reference:
    http://blog.mikehacker.net/2010/05/03/unable-to-open-pdf-directly-from-sharepoint-2010/
    Thanks,
    Wendy Li
    TechNet Community Support

  • Problem opening pdf files with Adobe Reader in Windows 7

    I bought a new Dell (Inspiron 5110) with pre-installed Windows 7 Home Premium (Version 6.1 SP1, 64 bit) and pre-installed Adobe Reader X (10.1.1). I cannot open ANY of my old pdf files with the Adobe reader (even after I re-installed the Adobe Reader). On another computer with Windows 7 I get the same error message. When I installed several other pdf-readers (Sumatra, Foxit, ..) I can still not open the pdf's -- but all the pdf's still open under Windows XP on my old computer and they also open on all my colleagues' non-Windows 7 computers. So it appears to be a Windows 7 problem. The Adobe error message says 'Adobe Reader could not open _.pdf because it is either not a supported file type or because the file has been damaged (…..).
    N.B.: I can download pdf files from the internet and can then open these 'new' pdf files with Adobe Reader X.
    N.B.2.: Most of the 'old' pdf files are scientific articles downloaded from various journal websites 2002-2011, so their quality should be out of question.
    N.B.3.:I've transfered the files via memory stick and portable HD.
    N.B.4.: If I try to open the pdf's via 'Open with' the problem remains the same.
    N.B.5.: When, on my Win7 Dell, I've uploaded/attached one of these old pdf files to an email the rtecipient could not tead it. But he could read it when I'd sent the same file from my old Win XP computer.
    N.B.6.: I have repeated this last observation: When I upload an old pdf file on my Win7 Dell to my email account and then send it to myself, I cannot open/read it on my Win XP (nor on the Dell, of course). Although the file size is precisely the same.
    N.B.7.: When I download a new pdf on my Dell, then upload/attach it to an email also on the Dell and send it to myself, I can download and read the attached pdf on both computers.
    Would be grateful for any suggestions.

    This is really strange.
    Please correct me if I am wrong, but from what I can understand, any PDF which is launched on your Win 7 OS fails to open, even though the same file works perfectly fine on your Win XP machine?
    Could you please run a full system anti virus scan on the said PDFs that are present on your local system. It could be a case of infected PDFs.
    Also, it would be great if you could try and download some of the erroneous PDFs from the web again, and see if you experience the same behavior.
    Thanks
    Ankit

  • How to read the contents of Uploaded File Data?

    Dear Experts,
    I want to develop one webdynpro application in which the iview contains the FileUpload option.and after uploading i need to read the contents of the file.
    Can you plz guide me how to achieve this?
    its very much helpfull if u have any sample project / code on this...plz do send it to [ycsvissu at gmail dot com]
    Regards,
    Viswes.

    Ike,
    Do you have a sample. I am searched so much in this forum for samples. I looked on SAX Parser. I did not find any samples.
    Please help me.
    Thank you for your posting.
    Padma.

Maybe you are looking for

  • Replaced value is not getting relected in IDOC segment field

    Hi, Need your help for the below issue. I am replacing the PO # with Delivery Doc # . But the replaced value is not getting reflected in the IDOC segment field(e1bp2017_gm_item_create-po_number.). Function Module  which I am using is IDOC_INPUT_MBGMC

  • How to download internal table data to excel in WebUI

    Hi everyone, I am trying to download the contents of an internal table to excel in CRM Web UI. One way, would be to create a table view and use the export to excel button. However, wish to avoid this and directly download using code. Also tried conve

  • RFC problem in solman 7.0 ehp 1

    Dear i am facing a problem when i crate trusted RFC trought SMSY. error is " Error Creatinf RFC destination SM_SOMCLNT500_BACK" IN SYSTEM TEST. BUT I HAVE GIVEN ALREADY "S_RFC & S_RFCACL" OBJECT IN BOTH SIDE SOURCE AND TARGET SYSTEM. REGARDS ANIL KUM

  • There is problem when downloading game in my iphone

    Please help me, when i am downloading a game. It says that i need to pay first even it is marked free.

  • JS field validation

    This should be easy but Im missing something. Using the simple Hello World example I want an alert to pop up if the content field is empty. Then display the dialog again to the user so they type something into the filed. The changes: //Create a text