Problems while reading and displaying .pdf-Documents from Bfile

Hi
I want to read and display .pdf-Documents in Adobe-Reader that are stored as BFile. While displaying the Document Adobe Reader is showing several Errors like " ..less Picture-Data read than expected.. ". Is this a Buffer-Problem? or whatelse ??
Thanks for help
null

PrintStream wr = new PrintStream(socket.getOutputStream());
wr.close();I suspect this is the problem. You could try socket.shutdownOutput() - or you could just leave the streams alone and let socket.close() shut things down.
Grant

Similar Messages

  • Display PDF document from Servlets to browser - how 2 change the title

    Hi, need help of changing the html title when Display PDF document from Servlets to browser. By default the browser's title shows the obsolute URL where the rdf comes from (i.e. http://www.google.com/sample.pdf), because servlet responds a binary data (PDF), there seems to be no other way to change the browser's title to fit my own choice.
    Appreciate your quick help,

    You can try and check with
    .setTitle("Welcome");

  • How to read and display a signal from my PIC Microcontr​oller onto Labview?

    Hi,
    I am doing a project on a Pulse Oximeter and i am trying to read and display the signal from my PIC Microcontroller on Labview? How do i go about doing it? I am using the PIC16F877 and also making use of the USART?
    How do i implement and initialise the USART in PIC16? What are the steps to be taken, please guide me through the process? The link provides information regarding the USART connection, initialisting and stuff? Is it correct to use these codes in my program?Link: http://ww1.microchip.com/downloads/en/AppNotes/007​74a.pdf
    Also, i am using the RS232 serial interface to connect to the PC? The connector i am using is the DB9 Connector. Which template and VI can i use? Am i supposed to use the NI-DAQmx and VISA? Also, for my USART connection, i am using the MAX232 Driver which is applicable for my application as i am working with +5V. So far, i have been reading and trying out on Labview and the steps i have taken are:
    1) Open a New VI and used the Instrument I/O(Read & Display) template?
    2) How do i configure the Instrument I/O Assistant Express VI to read the info from my device connected to COM1?
    3) I was reading the Labview Manual, 'Getting Started with Labview' and i was following the steps under Page 55, Communicating with an Instrument. Am i on the right track?
    4) How do i check and make sure that the port settings of the I/O Assistant and my PIC Micro Match
    Please help me out and guide me through the process. I am student at a polytechnic and i am very new to Labview and the software is used as a development tool for the project. I have a deadline to meet and i hope i can get a response as fast as possible. Your help will be kindly and greatly appreciated. I hope to hear from you guys soon.You can e-mail me all your answers at [email protected]
    Thank You
    Best regards,
    Ashwin
    Ashwin Kumar Mansukhani
    Attachments:
    Getting Started with Labview.pdf ‏901 KB

    Hi Ashwin,
    It is a good idea to first be able to communicate with the microcontroller using some sort of serial communication software such as "HyperTerminal" or "Procomm", etc. Refer to MicroChip's recommendations on this.
    Once that works, then you are ready to use LabView.
    Here is a link which covers many aspects of serial communication. Link - click here
    You probably received a development kit. They usually have a readily available interface. It's been a long time since I played with the PIC, but I seem to remember that you need to program the serial communication driver (as well as at least a bootloader) to get the serial communication going. The driver contains the necessary protocols so that you PC can have a machine conversation with the target (PIC).
    It sounds like a fun & interesting project. Please avoid to have replies to your personal email. By having the answers posted to this thread, you will get much more support and advice.
    Have fun,
    JLV

  • How to read and display a signal from my PIC Microcontroller onto Labview

    Hi,
    I am doing a project on a Pulse Oximeter and i am trying to read and display the signal from my PIC Microcontroller on Labview? How do i go about doing it? I am using the PIC16F877 and also making use of the USART?
    How do i implement and initialise the USART in PIC16? What are the steps to be taken, please guide me through the process? The link provides information regarding the USART connection, initialisting and stuff? Is it correct to use these codes in my program?Link: http://ww1.microchip.com/downloads/en/AppNotes/00774a.pdf
    Also, i am using the RS232 serial interface to connect to the PC? The connector i am using is the DB9 Connector. Which template and VI can i use? Am i supposed to use the NI-DAQmx and VISA? Also, for my USART connection, i am using the MAX232 Driver which is applicable for my application as i am working with +5V. So far, i have been reading and trying out on Labview and the steps i have taken are:
    1) Open a New VI and used the Instrument I/O(Read & Display) template?
    2) How do i configure the Instrument I/O Assistant Express VI to read the info from my device connected to COM1?
    3) I was reading the Labview Manual, 'Getting Started with Labview' and i was following the steps under Page 55, Communicating with an Instrument. Am i on the right track?
    4) How do i check and make sure that the port settings of the I/O Assistant and my PIC Micro Match
    Please help me out and guide me through the process. I am student at a polytechnic and i am very new to Labview and the software is used as a development tool for the project. I have a deadline to meet and i hope i can get a response as fast as possible. Your help will be kindly and greatly appreciated. I hope to hear from you guys soon.You can e-mail me all your answers at [email protected]
    Thank You
    Best regards,
    Ashwin
    Ashwin Kumar Mansukhani
    Attachments:
    Getting Started with Labview.pdf ‏901 KB

    Hi Ashwin,
    I am not familiar with the PIC Microcontrollers, but I am assuming you mean that you have the microcontroller sending out serial data that you want to read on another computer with LabVIEW. Please let me know if this is incorrect.
    What type of data is coming out of the serial port? Is it ASCII, or binary? The reason I ask this is that the serial communication in LabVIEW is done through a protocol called VISA, which uses ASCII data to send and receive. You can later convert this data into whatever form you need, but this is what it is designed to read and write.
    You can check the settings such as baud rate and data bits in a configuration utility called Measurement and Automation Explorer, or MAX. When you open up the MAX interface, you can expand the Devices and Interfaces entry on the left, and then expand the Ports entry to see your serial port. When you highlight this port, select the Port Settings tab at the bottom of the window, and you can see what the current settings are, and change them if you need to. You can also set these parameters in LabVIEW using the VISA Configure Serial Port VI.
    You can also test communication in MAX by right clicking on the correct port and choosing Open VISA Session. Then choose the Basic I/O light blue tab, and then go to the Read tab. When you click execute, it should read in what is coming from the serial port. This will allow you to verify that the correct information is coming in before even trying to acquire the data in the LabVIEW environment.
    In LabVIEW, the best resource to use the Basic Serial Write and Read example program that ships with LabVIEW. By examining the block diagram of this program, you will be able to see the basic programming flow of serial communication in LabVIEW.
    I hope this information was helpful! Please let us know if there's anything else we can help with.
    john
    Applications Engineer

  • How to read and display a signal from my a miccrontroller (MCB1700) onto labview connected via a CAN port on a PXI machine

    How do you read and display a signal from my a miccrontroller (MCB1700) onto labview connected via a CAN port on a PXI machine?
    I tried using a DAQ Assistant but the CAN port is not included as one of the supported physical channels even though all its drivers are upto date.
    Please help..
    Thanks.
    Solved!
    Go to Solution.

    Attached herewith is a print screen of what is showing on MAX
    The CAN ports are on NI PXI-8461
    Hopefully that clarrifies something.
    Attachments:
    Untitled.png ‏212 KB
    Untitled.png ‏212 KB

  • Hi there, I currently subscribe to Adobe Pro Subscription (yearly) and I also subscribe to Adobe PDF pack (monthly).  I only require Adobe to read and create PDF documents such as converting word/excel document or a web based document.  Can someone tell m

    Hi there, I currently subscribe to Adobe Pro Subscription (yearly) and I also subscribe to Adobe PDF pack (monthly).  I only require Adobe to read and create PDF documents such as converting word/excel document or a web based document.  Can someone tell me if I'm doubling up as I'm not sure of the differences between the products and would like to save a few dollars.

    Acrobat Pro can do a lot more than the PDF Pack online service.
    Try if you can do everything you need with PDF Pack; otherwise keep Acrobat Pro.

  • Error while working and saving .PDF files from Illustrator CS 5.1

    One of my partners has been facing issues while working with Adobe Illustrator PDF Files, especially while saving them. We've lost so many hours of work with these errors. We own an early 2009 iMac (MB418LL/A) running OS X Mountain Lion (10.8.5). You can see the specs in this link:
    iMac "Core 2 Duo" 2.66 24-Inch (Early 2009) Specs (Early 2009, MB418LL/A, iMac9,1, A1225, 2267) @ EveryMac.com.
    She works with vectors and images, most of the time. At the moment, working on a Letter sheet sized magazine. Any help would be appreciated. Thanks in advance.
    This is the error shown: http://txs.io/Xnrb

    Alvin,
    Just to make sure: Where are you/is she saving?
    Here it is always recommended to open/save AI documents from/to own harddisk, and to only copy from/to externals such as local server/whatever.
    The reason is that with the latter, AI files tend to get corrupted sooner or later, so you may be lucky for a while but it hurts when your luck runs out.

  • Problem with sending and archiving pdf document

    Hello experts,
    I have created the following SAP PI scenario:
    First a pdf document will come from our partner to a specified directory. The ftp adapter sender get this file and also set the filename in the adapter specific messages. Then a udf mapping starts to read the filename of the pdf document, because the filename includes a ordernr for a sales order in sap. So the filename will be mapped to an easy rfc structur, afterwards the RFC Adapter will be called. After this I have to archive and delete the pdf document in the origin directory. But this will not work. I tried following steps.
    After calling the rfc adapter another receiver determination will be called. That means a ftp adapter receiver is called that gets the filename and copies the pdf document to another directory. This works, but if I try to open the pdf document then it does not work, because the pdf document includes the structure of the rfc function module, filled with the filename param.
    Furthermore the archive function of the ftp adapter sender does not work. Everything is correct set, but the pdf document will not copy to the right folder. Before I create a Java adapter module for the file adapter sender, that copies and deletes the file in the origin folder,  another solution would be better.
    Kind regards,
    Erkan

    Ideally the processing mode Archive should work for your case.
    This works, but if I try to open the pdf document then it does not work, because the pdf document includes the structure of the rfc function module, filled with the filename param.
    Why are you using the RFC structure  for the other receiver in receiver determination. Use some dummy name in the Interface name and interface mapping and still the scenario will work. In the receiver channel, use the File type as binary.
    Regards,
    Prateek

  • Problem Trying to retrieve a PDF document from XMLP_SCHED_DATA BLOB field.

    Hello everyone,
    I'm using BI Publisher 11g to generate PDF documents. I had implemented a servlet that uses HTTP POST/GET to simulate the behaviour of BIP console since ScheduleReport Service is not implemented in this version. The problem is about the output of the final documents when i'm not using the bursting option. From my experience, the documents are not saved in any temporary folder in the filesystem. Looking at DEV_BIPLATFORM schema and analysing XMLP_* tables, i'm assuming that the generated document data is the BLOB DATA field in the XMLP_SCHED_DATA table...this is right?
    Next, in java, i'm using the BLOB field to output his binary content to a PDF file but, when i try to open the file, it gives an error: "document may be damaged"...
    Any suggestions here would be appreciated...
    Thanks in Advance
    Regards,
    NP

    831692 wrote:
    Hello everyone,
    I'm using BI Publisher 11g to generate PDF documents. I had implemented a servlet that uses HTTP POST/GET to simulate the behaviour of BIP console since ScheduleReport Service is not implemented in this version. The problem is about the output of the final documents when i'm not using the bursting option. From my experience, the documents are not saved in any temporary folder in the filesystem. Looking at DEV_BIPLATFORM schema and analysing XMLP_* tables, i'm assuming that the generated document data is the BLOB DATA field in the XMLP_SCHED_DATA table...this is right?
    Next, in java, i'm using the BLOB field to output his binary content to a PDF file but, when i try to open the file, it gives an error: "document may be damaged"...
    Any suggestions here would be appreciated...
    Thanks in Advance
    Regards,
    NP1. Yes, it contains the output document.
    2. If the output type is PDF then the BLOB contains a zip file which contains the PDF document.
    So first unzip it before rendering
    Cheers
    Jorge
    p.s. If your question is answered then please grant the points and close the thread

  • Display PDF document from Servlets to browser

    Hi All,
    I am displaying a PDF document in Servlet after reading the stream. PDF size is of more than 3MB, so it takes a lot of time to get downloaded and to display on the browser.
    Is there anyway to display the initial pages to the browser (whatever data has been sent ). Can you please help me in this.
    Please treat it as urgent
    Thanks in advance,
    Purav

    I have to ask:
    Why are you trying to pump a PDF to the client? Is it stored in a database rather than to the file system? Or...are you trying to display a PDF file in HTML format so end users don't need Acrobat?
    If neither of these is the case, couldn't you just send a response.redirect("path to PDF file") and get the same result without all the headache?
    If case 1 (the PDF is stored in the database and not the filesystem), you may want to ask why? You could simply create a table that maps some document_id to a local file path. That way if you need to delete it or change it, you know what and where it is.
    If case 2 (you want to read a PDF and display as HTML to the client) you should use a parser like:
    http://www.tethys-milano.com/tethys/pdfparser.xtmlor
    http://www.jpedal.org/

  • How to read and store the documents from other system to own system.

    Hi Experts,
    i need to read the document from other system (Say from other connected R/3 system) and then i need to save it in my system.
                     Please suggest how would i proceed?
    Any helpful suggestion will be rewarded with points.
    thanks
    Snehasish

    Hi Abaper
    I think I havent explained my problem well. Here I am explaining it again..
    I want to pull an  *.excel/ *.csv file through ABAP code.The target file that I want to access in my ABAP code is stored into another PC in the same Local area network under some directory say 'c:\temp\credit.csv'.
    I have the logon information of the target file's  PC.
    Please help me with code if anyone of you having.
    Thanks in advance.
    Rgds,
    Snehasish
    Edited by: Snehasish Das on Apr 29, 2008 2:18 PM
    Edited by: Snehasish Das on Apr 29, 2008 2:33 PM

  • Reading and displaying GOS-documents

    hi,
    i have an abap in which i get the GOS-connections for a specific BO with
    Function module 'BDS_GOS_CONNECTIONS_GET'.
    so far so good. but how can i display the Document, which i have found with the FM
    mentioned above ?
    best reg, Martin

    Here is a Link to a Tool that sounds like it will open practically anything and view it.
    http://www.freefileviewer.com/ 
    Appears to be just a viewer only.  From description it will do just about ever thing in the way of viewer, but gold plate your kitchen sink. Doesn't seem to be a file type it can't look at.

  • How to pull and display the document from an external storage medium?

    HI,
    We are having one external storage medium for SAP documents. In our case it is filenet server.
    My concern is .
    How can we pull the doc from the filenet server (external storage medium)?. I am in need, how and what an abap development team needs to be done?.
    Can anyone help in this regard ....to get the best logic and best technique ....!!!
    Note:
    I need to post this in ordinary abap not in webdynpro abap. I will do that. If any one get a chance to look into this and if you know .....please let me know the way.
    Thanks in advance
    Pons.
    Edited by: Ponnuchamy on May 31, 2009 1:30 AM

    in first page for user input :
    <form action="second.jsp" method="post">
    Are you happy?
    <br><input type="radio" name="radio1" value="yes" CHECKED>YES
    <br>
    <input type="radio" name="radio1" value="no">NO
    <input type="submit">
    in second.jsp output :
    Your answer is:
    <%= request.getParameter('radio1') %>
    Is it what you want to display?
    Hope that helps.

  • Reading and displaying Ms.Word document with web dynpro java

    Hi,
    I'm using NetWever developer studio 7..0.21.
    I'm developing web dynpro java application.I'm in difficulty to read and display word document with its original format in web dynpro view. Is it possible?
    If possible , is there a blog etc.?
    Thanks.

    Hello,
    You have to use the Office Integration Library. Please, follow the documentation below:
    http://help.sap.com/saphelp_nw04/helpdata/en/c3/32853febec3c17e10000000a114084/frameset.htm
    I hope this helps you.
    Regards,
    Blanca

  • How can I download a .pdf document from a web link without Adobe Reader starting automatically and i

         How can I download a .pdf document from a web link without Adobe Reader starting automatically and preempting the download?                         

    That depends on your operating system and browser.  On Windows, e.g. using Firefox, you right-click on the link, then select 'Save link as...'.

Maybe you are looking for

  • Selections in Info package

    Hi, Can any one help me  in  selecting the data through info package where Key figure1<>0 <b>AND</b>  key figure <> 0.  I.e    I have the extractor which is pulling 50 millions of data and  updating only 1 million.The reason  I have a code in the sta

  • Submit Warning Live Cycle Form (with Chunk)

    Hi, I have created some pdf forms with Live Cycle Designer and save them in my database as base64 string. I created XDP with formdata and CHUNK of this pdf form from database and show this XDP on browser. This all works fine. but when user tries to C

  • Error in PS/SD Price Interface

    Dear Colleagues Has anyone come accross the following error: No expenditure items found Message no. VPK1310 Diagnosis No expenditure items matching the selection were found. System Response No processing possible. Procedure Resource-related billing c

  • Playing Quicktime won't work in Safari, displays code.

    Using my iPhone 3GS, I've attempted to load Quicktime Movies from websites and it just displays code. Whereas, on my old iPod Touch it would display just fine. The podcasts from the ESPN Podcenter WebApp is a perfect example of this. Can anybody help

  • ROTATE 90 Degree For Full Page VIewing?

    Hi, is it possible to rotate the digital reader 90 degrees in order to read a full page of text without scrolling? I have a MacBook, which is perfect for reading a full page of text in portrait mode. It is less perfect for reading a page in Landscape