Article View: adobe.reader
Article #7620reading document from a string
From: mikhail.novoselov
Date: Wed, 14 Feb 2007 21:30
Date: Wed, 14 Feb 2007 21:30
24 lines
1414 bytes
1414 bytes
I got a problem here. We got a java application. We store the pdf file as a blob in an Oracle database. When we read it we have to write it out and then: String command = "cmd /c start " + pathToPdfFile; Runtime.getRuntime().exec(command); I was wondering if it is possible to avoid the write. We will not have write permissions any more. Maybe somehow get AcroRd32.exe to read it from a string, or to pipe it or something like that. I was trying: String command = " C:\\Program Files\\Adobe\\Reader\\AcroRd32.exe <" + blobString; or String command = " C:\\Program Files\\Adobe\\Reader\\AcroRd32.exe <" + "echo \"" + blobString + "\""; Runtime.getRuntime().exec(command); Does not work!!! Does someone know??? Thanks! Mikhail PS. Running Java (J2SE) on Windows XP. Which I do not think makes any difference.
Technical Details
Message-ID:
<3bc32678.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.germany.com!news.mb-net.net!open-news-network.org!news.isoc.lu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: 10273d,8e2607c3947d963f,start X-Google-Attributes: gid10273d,public X-Google-Language: ENGLISH,ASCII-7-bit From: mikhail.novoselov@pw.utc.com@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.germany.com!news.mb-net.net!open-news-network.org!news.isoc.lu!webcrossing Newsgroups: adobe.reader Subject: reading document from a string Message-ID: <3bc32678.-1@webcrossing.la2eafNXanI> Date: Wed, 14 Feb 2007 13:30:50 -0800 Lines: 31 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit