Converting .prn to a readable format
Hi,
I need to capture the .prn files that a certain application creates in a TMP folder and somehow convert it to a readable format like .txt or .doc or .pdf. There are two major problems -
1. The .prn files get removed from the folder as soon as the print job is over. How do i make them stay??
2. How to convert the prn file to a readable form such that there are no extra ascii garbage characters.
3. I tried the windows print dialog box "print to file" option. That doesnt work somehow. It doesnt ask me for any file name. Any ideas about this??
Can we do something in java to solve this problem.
Thanks
I need to capture the .prn files that a certain
tain application creates in a TMP folder and somehow
convert it to a readable format like .txt or .doc or
.pdf. There are two major problems -
1. The .prn files get removed from the folder as soon
as the print job is over. How do i make them stay??Ask the people who wrote the application.
2. How to convert the prn file to a readable form
such that there are no extra ascii garbage
characters.Ask the people who wrote the application.
3. I tried the windows print dialog box "print to
file" option. That doesnt work somehow. It doesnt ask
me for any file name. Any ideas about this??Ask the people who wrote the application.
Can we do something in java to solve this problem.Ask the people...
Similar Messages
-
When trying to create a PDF from a website the font doesn't convert properly to a readable format
Hello,
As the title states when I find something on a website that I want to create a PDF with, the font that's readable from the website converts once the PDF is created to an unknown format that isn't readable in any language. I'm using Adobe Acrobat XI Pro and quite the novice at using Acrobat, so any info would be a great help. Did try and search around the forum for the issue but I wouldn't really know what to type as I'm not familiar with what the text is converting to.Ok so I go to a web page and select something to print. Once I've clicked print I switch over from printer/micosoft xps docu writer/fax and select Adobe PDF. All goes through with a 'Create Adobe PDF' coming up progressing through to eventually save and store. Once I open the file it end up as the picture above. I have the same version on another computer and that works fine but this particular Sony laptop it doesn't seem to work properly.
-
How to convert VCD files into readable format on iDVD, iMovie, DVD player
I found a bunch of old VCDs that I want to convert so that I can use them on iDVD, iMovie. What is the best free converter and would appreciate any tips as to the best way to reduce any loss of resolution. I tried last year converting thru mpeg streamclip and the movie came out pixelated in .mov.
ffmpeg might be very difficult to install and use, but not FFMpegX. FFMpegX takes ffmpeg, adds a very simple Mac OS X UI on top, and packages it as an application bundle. No files to put in strange places, and simple to use.
I highly recommend it. It comes preconfigured with setting for common file formats and automatically recognizes the input format. You can simply tell it to convert a directory of files from whatever format they were in to H.264 QuickTime movies and it'll do it. -
How to convert .trc into a readable format or txt file
Hi,
I tried using tkprof but it output similar to this :
TKPROF: Release 10.2.0.1.0 - Production on Sun Dec 28 13:42:39 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Trace file: C:\ababil_cjq0_1044568.trc
Sort options: default
count = number of times OCI procedure was executed
cpu = cpu time in seconds executing
elapsed = elapsed time in seconds executing
disk = number of physical reads of buffers from disk
query = number of buffers gotten for consistent read
current = number of buffers gotten in current mode (usually for update)
rows = number of rows processed by the fetch or execute call
Trace file: C:\ababil_cjq0_1044568.trc
Trace file compatibility: 10.01.00
Sort options: default
1 session in tracefile.
0 user SQL statements in trace file.
0 internal SQL statements in trace file.
0 SQL statements in trace file.
0 unique SQL statements in trace file.
238 lines in trace file.
0 elapsed seconds in trace file
Is this the correct output?
Cheers,
SachOutput would very based on which file you are trying to convert.
TKProf can be run from anywhere, even from the client (for administrator type installation AFAIK) of preferably the same Oracle version.
Best would be to run the same from the database server itself, as there would be no conflicts about versions and interpretation of trace data by the tkprof utility. F.ex. prior to 10g, all timings in trace files were in milliseconds whereas in 10g, it is saved in microseconds. -
Converting mts to a usable format
Hi, I know there are a few similar threads on this issue.
I don't mind paying for a quality conversion software, but with all the trial software I download the converted video displays horizontals lines right across the footage. Whats the best piece of software/settings to try and get rid of this?
I am using a panasonic camera and the avchd files display as .mts - surely im not the only one to have suffered this problem!?
Thanks for any help, as this is a real pain!!I need to capture the .prn files that a certain
tain application creates in a TMP folder and somehow
convert it to a readable format like .txt or .doc or
.pdf. There are two major problems -
1. The .prn files get removed from the folder as soon
as the print job is over. How do i make them stay??Ask the people who wrote the application.
2. How to convert the prn file to a readable form
such that there are no extra ascii garbage
characters.Ask the people who wrote the application.
3. I tried the windows print dialog box "print to
file" option. That doesnt work somehow. It doesnt ask
me for any file name. Any ideas about this??Ask the people who wrote the application.
Can we do something in java to solve this problem.Ask the people... -
Hi,
My Oracle Version is 10.2.0.4.
How would I know the low_value and high_value from the table USER_TAB_COL_STATISTICS in a readable format. I am getting the values in RAW. How would I get these values for CHAR datatype columns in CHAR, NUMBER datatype columns in NUMBER and DATE datatype columns in DATE.
See the example given below.
swamy@VSFTRAC1> DESC employee_attendance
Name Null? Type
EMPID NOT NULL VARCHAR2(10)
ACCESS_TIME NOT NULL DATE
ENAME VARCHAR2(50)
FLOOR VARCHAR2(10)
DOOR VARCHAR2(10)
INOUT VARCHAR2(3)
ACCESS_RESULT VARCHAR2(50)
swamy@VSFTRAC1> SELECT column_name, density, num_distinct, num_nulls, low_value, high_value, avg_COL_len FROM user_tab_col_statistics WHERE table_name='EMPLO
YEE_ATTENDANCE';
COLUMN_NAME DENSITY NUM_DISTINCT NUM_NULLS LOW_VALUE HIGH_VALUE AVG_COL_LEN
EMPID .008333333 120 0 30303031303830 3031313633 7
ACCESS_TIME .000259538 3853 0 786E0101031121 786E0106121B01 8
ENAME .008333333 120 0 414248494A49542050415449 57494E53544F4E2053414D55454C20 16
52414A552050
FLOOR .5 2 0 5345434F4E44 5448495244 7
DOOR .5 2 0 454E5452414E4345 535441495243415345 10
INOUT .5 2 0 494E 4F5554 4
ACCESS_RESULT 1 1 0 414343455353204752414E544544 414343455353204752414E544544 15
7 rows selected.
swamy@VSFTRAC1>Hi,
You can use the " dbms_stats.convert_raw_value" to convert the value to readable format
Refer to the following for the example
http://structureddata.org/2007/10/16/how-to-display-high_valuelow_value-columns-from-user_tab_col_statistics/
Hope that helps and solution for your requirement.
- Pavan Kumar N
Oracle 9i/10g - OCP
http://oracleinternals.blogspot.com/ -
Need to convert the binary data in blob field to readable format
Hi,
We need to convert the Binary data in the BLOB field to readable format and need to display it in Oracle Apps Environment,does anybody come across the similar requirement.
please advise, thanks in advance.
Regards,
Babu.You could use standard Attachments functionality here ... if the blob is not in FND_LOBS, insert into FND_LOBS, fnd_attached_documents etc to enable viewing via "Attachments" to the entity the blob is related to.
Gareth -
How can I convert the ITHMB photo files to PC readable format like JPEG?
How can I convert the ITHMB photo files on my new Iphone 4s to a PC readable format like JPEG
Look at the link and follow instructions to convert the file taken from a different thread in this forum:
https://discussions.apple.com/thread/2640386?start=0&tstart=0 -
Converting the Opaque Element into Readable format.
Hi,
Right now, I am using the FTP adapter to continously poll for a new file. Whenever new file comes in, our BPEL process gets initiated. We get the contents of the file in the variable of opaque element( I have given Message Schema is Opaque in the FTP Adapter configuration).
I have to send the content of the file as the attachment in the e-mail. So when I am using the above variable in the e-mail notification, I am getting the data in the non-readable format, since the corresponding variable is of opaque schema. Now my requirement is to convert this non-readable opaque data into the readable data.
Any help is highly appreciatable.Sorry the code I gave you was decodeing a hex variable into string.
Try this code:
String input = (String)getVariableData("InputBinary");
Base64Decoder Decoder = new Base64Decoder();
String decoded = Base64Decoder.decode(input);
setVariableData("OutputString",decoded);
you will also need to add the java class:
<bpelx:exec import="com.collaxa.common.util.Base64Decoder"/>
Just looking at the Base64 string you are testing. It is missing the 'g' off 'Testing'. The correct binary string should be VGVzdGluZw==
I'm not sure how this code is getting generated but you may need to look in that.
If you want the code to encode into binary use this:
String input = (String)getVariableData("InputString");
Base64Encoder encoder = new Base64Encoder();
byte[] barray = (new String(input)).getBytes();
BigInteger bint = new BigInteger(barray);
String encoded = Base64Encoder.encode(barray);
setVariableData("OutputBinary",encoded);
add the java class:
<bpelx:exec import="com.collaxa.common.util.Base64Encoder"/>
sorry for putting you wrong.
cheers
James -
Converting value from System.currentTimeMillis() to readable format
hi
i have in database coumn with values that were stored as result of executing System.currentTimeMillis() in java (=“the difference, measured in milliseconds, between the current time and midnight, January 1, 1970 UTC). i need to convert these values to some human readable format.
i am able to get year, month and day from these values(value_date) in format "dd/mm/yyyy" but i need hours, minutes and seconds as well.
select i have for getting years, months and days:
select (
extract (day FROM (to_date('01/01/1970 00:00:00000','mm/dd/yyyy hh24:mi:sssss') + value_date/1000/86400))
|| '/'||
extract (month from (to_date('01/01/1970 00:00:00000','mm/dd/yyyy hh24:mi:sssss') + value_date/1000/86400))
||'/'||
extract (year FROM (to_date('01/01/1970 00:00:00000','mm/dd/yyyy hh24:mi:sssss') + value_date/1000/86400))
FROM some_table;
please advice how to improve this select to get something like "dd/mm/yyyy hh:mm:ss"
thanksNote that the result with to_char might still not be what you expect (due to timezone and/or DTS):
SQL> CREATE OR REPLACE FUNCTION currenttimemillis
RETURN NUMBER
IS
LANGUAGE JAVA
NAME 'java.lang.System.currentTimeMillis() return java.lang.long';
Function created.
SQL> select to_char(sysdate, 'dd.mm.rrrr hh24:mi:ss') dt,
to_char(date '1970-01-01' + currentTimeMillis/(1000*24*60*60),'dd.mm.rrrr hh24:mi:ss') dt2
from dual
DT DT2
04.06.2009 16:44:09 04.06.2009 14:44:09 -
How to recover word files with readable format after formatting external hard drive?
I had tried different software. All software are able to recover word files but all word files having encoded content is there any way to convert it in readable format?
please provide any solution for this problem
Thank You.Are you saying that these documents are password-protected? In that case, if you don't have the passwords, it's going to be next to impossible to open them.
Stefan Blom, Microsoft Word MVP -
How to read from BLOB and Write to a file in user readable format.
Hi,
I am trying to read from a BLOB column and write the content to a file in user readable format. So far I was able to read the Blob column using dbms_lob, but not able to write to a file. Kindly let me know the method to do this.Hi, with this Java Code from Oracle Technet it's a easy thing:
// classpath= /ORACLE/u01/app/oracle/product/10.2.0.3/jdbc/lib/ojdbc14.jar
// Java SQL classes
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.Statement;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
// Oracle JDBC driver class
import oracle.jdbc.OracleDriver;
// Java IO classes
import java.io.IOException;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
//Java Util classes
import java.util.Properties;
* This class demonstrates the Oracle JDBC 10g enhanced features for inserting
* and retrieving CLOB data from the database. Using the new features, large
* data of more than 32765 bytes can be inserted into the database using the
* existing PreparedStatement.setString() and PreparedStatement.getString()
* methods.
public class ClobMan {
/* Database Connection object */
private Connection conn = null;
/* Variables to hold database details */
private String url = null;
private String user = null;
private String password = null;
// Create a property object to hold the username, password and
// the new property SetBigStringTryClob.
private Properties props = new Properties();
/* String to hold file name */
private String fileName = null;
* Default Constructor to instantiate and get a handle to class methods
* and variables.
public ClobMan(String fileName) {
this.fileName = fileName;
* Main runnable class.
public static void main(String[] args) throws SQLException {
// Instantiate the main class.
ClobMan clobMan = new ClobMan(args[0]);
// Load the Oracle JDBC driver class.
DriverManager.registerDriver(new OracleDriver());
// Load the database details into the variables.
String dbUrl = "jdbc:oracle:thin:@pmol:1550:dbpmol";
clobMan.url = dbUrl;
clobMan.user = "gh10";
clobMan.password = "secret";
// Populate the property object to hold the username, password and
// the new property 'SetBigStringTryClob' which is set to true. Setting
// this property allows inserting of large data using the existing
// setString() method, to a CLOB column in the database.
clobMan.props.put("user", clobMan.user );
clobMan.props.put("password", clobMan.password);
clobMan.props.put("SetBigStringTryClob", "true");
// Check if the table 'CLOB_TAB' is present in the database.
//clobMan.checkTables();
// Call the methods to insert and select CLOB from the database.
//clobMan.insertClob();
clobMan.selectClob();
* This method will insert the data into a CLOB column in the database.
* Oracle JDBC 10g has enhanced the existing PreparedStatement.setString()
* method for setting the data more than 32765 bytes. So, using setString(),
* it is now easy to insert CLOB data into the database directly.
private void insertClob() throws SQLException {
// Create a PreparedStatement object.
PreparedStatement pstmt = null;
try {
// Create the database connection, if it is closed.
if ((conn==null)||conn.isClosed()){
// Connect to the database.
conn = DriverManager.getConnection( this.url, this.props );
// Create SQL query to insert data into the CLOB column in the database.
String sql = "INSERT INTO clob_tab VALUES(?)";
// Read a big file(larger than 32765 bytes)
String str = this.readFile();
// Create the OraclePreparedStatement object
pstmt = conn.prepareStatement(sql);
// Use the same setString() method which is enhanced to insert
// the CLOB data. The string data is automatically transformed into a
// clob and inserted into the database column. Make sure that the
// Connection property - 'SetBigStringTryClob' is set to true for
// the insert to happen.
pstmt.setString(1,str);
// Execute the PreparedStatement
pstmt.executeUpdate();
} catch (SQLException sqlex) {
// Catch Exceptions and display messages accordingly.
System.out.println("SQLException while connecting and inserting into " +
"the database table: " + sqlex.toString());
} catch (Exception ex) {
System.out.println("Exception while connecting and inserting into the" +
" database table: " + ex.toString());
} finally {
// Close the Statement and the connection objects.
if (pstmt!=null) pstmt.close();
if (conn!=null) conn.close();
* This method reads the CLOB data from the database by using getString()
* method.
private void selectClob() throws SQLException {
// Create a PreparedStatement object
PreparedStatement pstmt = null;
// Create a ResultSet to hold the records retrieved.
ResultSet rset = null;
try {
// Create the database connection, if it is closed.
if ((conn==null)||conn.isClosed()){
// Connect to the database.
conn = DriverManager.getConnection( this.url, this.props );
// Create SQL query statement to retrieve records having CLOB data from
// the database.
String sqlCall = "SELECT rownum, name, sourcetext FROM t_source";
pstmt= conn.prepareStatement(sqlCall);
// Execute the PrepareStatement
rset = pstmt.executeQuery();
String rownum = null;
String o_name =null;
String clobVal = null;
// Get the CLOB value from the resultset
//java.io.BufferedWriter out = new java.io.BufferedWriter(new java.io.FileWriter("pr_all.sql"));
while (rset.next()) {
rownum = rset.getString(1);
o_name = rset.getString(2);
clobVal = rset.getString(3);
System.out.println(" length: "+clobVal.length()+" "+o_name+" "+rownum);
java.io.BufferedWriter out =
new java.io.BufferedWriter(new java.io.FileWriter(o_name+".prc"));
out.write(clobVal);
out.newLine();
out.write("/");
out.newLine();
out.newLine();
out.flush();
out.close();
} catch (SQLException sqlex) {
// Catch Exceptions and display messages accordingly.
System.out.println("SQLException while connecting and querying the " +
"database table: " + sqlex.toString());
} catch (Exception ex) {
System.out.println("Exception while connecting and querying the " +
"database table: " + ex.toString());
} finally {
// Close the resultset, statement and the connection objects.
if (rset !=null) rset.close();
if (pstmt!=null) pstmt.close();
if (conn!=null) conn.close();
* Method to check if the table ('CLOB_TAB') exists in the database; if not
* then it is created.
* Table Name: CLOB_TAB
* Column Name Type
* col_col CLOB
private void checkTables() {
Statement stmt = null;
ResultSet rset = null;
try {
// Create the database connection, if it is closed.
if ((conn==null)||conn.isClosed()){
// Connect to the database.
conn = DriverManager.getConnection( this.url, this.props );
// Create Statement object
stmt = conn.createStatement();
// Check if the table is present
rset = stmt.executeQuery(" SELECT table_name FROM user_tables "+
" WHERE table_name = 'CLOB_TAB' ");
// If the table is not present, then create the table.
if (!rset.next()) {
// Table does not exist, create it
stmt.executeUpdate(" CREATE TABLE clob_tab(clob_col CLOB)");
} catch (SQLException sqlEx) {
System.out.println("Could not create table clob_tab : "
+sqlEx.toString());
} finally {
try {
if( rset != null ) rset.close();
if( stmt != null ) stmt.close();
if (conn!=null) conn.close();
} catch(SQLException ex) {
System.out.println("Could not close objects in checkTables method : "
+ex.toString());
* This method reads the specified text file and, returns the content
* as a string.
private String readFile()
throws FileNotFoundException, IOException{
// Read the file whose content has to be passed as String
BufferedReader br = new BufferedReader(new FileReader(fileName));
String nextLine = "";
StringBuffer sb = new StringBuffer();
while ((nextLine = br.readLine()) != null) {
sb.append(nextLine);
// Convert the content into to a string
String clobData = sb.toString();
// Return the data.
return clobData;
} -
How to convert BLOB data into string format.
Hi,
I have problem while converting blob data into string format.
for example,
Select dbms_lob.substr(c.shape.Get_wkb(),4000,1) from geotable c
will get me the first 4000 byte of BLOB .
When i using SQL as i did above,the max length is 4000, but i can get 32K using plsql as below:
declare
my_var CLOB;
BEGIN
for x in (Select X from T)
loop
my_var:=dbms_lob.substr(x.X,32767,1)
end loop
return my_var;
I comfortably convert 32k BLOB field to string.
My problem is how to convert blob to varchar having size more than 32K.
Please help me to resolve this,
Thanx in advance for the support,
NileshNilesh,
. . . .The result of get_wkb() will not be human readable (all values are encoded into some binary format).
SELECT utl_raw.cast_to_varchar2(tbl.geometry.get_wkt()) from FeatureTable tbl;
-- resulting string:
☺AW(⌂özßHAA
Å\(÷. . . .You may also want to have a look at { dbms_lob | http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_lob.htm#i1015792 } "The DBMS_LOB package provides subprograms to operate on BLOBs, CLOBs, NCLOBs, BFILEs, and temporary LOBs."
Regards,
Noel -
REGARDING CONVERSION OF SPOOL (XML FORMAT ) INTO READABLE FORMAT
HELLO EVRYONE, I AM GETTING MY SMARTFORM OUTPUT IN XML FORMAT ON SPOOL, I WANT TO CHECK IT SO I NEED THAT XML OUTPUT IN TEXT FORMAT OR ANY OTHER READABLE FORMAT, PLEASE REPLY ME. ITS URGENT.
THANKS & REGARDS,
VIMARSH B.Hi Check this link..
http://www.****************/Tutorials/Smartforms/OTF2PDF.htm
IT contains the code to convert smartform output to PDF File
Regards,
Sai Ramesh -
I don't know if this has been posted but, thought everyone might find it useful.
You can convert quicktime movies to readable ipod video format without having to purchase Quicktime Pro. Thats right, just the Quicktime player.
Now, I know that you can use Handbrake along with other converter programs for free. but just in case you want to use Quicktime Player here is a link that will show you how via applescript or automator.
http://www.cs.brandeis.edu/~ari/scripts/Quicktime2iTunesVideo.htmlHere's a step-by-step of ONE of the ways (I have a Mac) you can convert your videos (mpgs) to mpeg4 files to view on your 5th gen iPods so your videos will have sound:
I use Mpeg streamclip found on www.squared5.com.
(This is from memory and I don't have the program opened in front of me so apologies if this is not totally accurate!)
Once you've installed Mpeg streamclip, and opened up a new window, drag the mpg file you want converted onto the new window. You should now see the first clip of your video in the window.
Go to File and choose "Export to MPEG4". This will open up another window. Click the button "iPod" on the upper right corner of the window and that will automatically input the settings for an iPod. Then click the button "Export to MPEG4" at the lower right corner of the window. You have to choose where you want your file saved. I just place them in the Videos folder of my hard drive. Then this will start the conversion of your mpg.
Depending on how large your file is, this may take awhile.
When the conversion is complete, simply take your new file (now with ".mpeg4" as an extension) and DRAG it into your iTunes library. I don't remember if you have to actually drag it onto your iPod as well.
As you drag the mpeg4 file onto your iPod, it should say "updating song" at the top of you iTunes window, then you know it worked.
So now you have a VIDEO on your iPod that plays SOUND!!
Hope this was helpful.
Maybe you are looking for
-
HTML Form in a "PL/SQL (anonymour Block)"
Hello I need a little ugent guidance I have create a "form" within a "PL/SQL (anonymour Block)". The requirement is to show what a HTML form looks like as you build the code The problem is I am "Up Setting" the APEX processing i.e. wwv_flow.accept ..
-
a tag is creating error in import XML in InDesign CS5.5
Hi All, I am doing upgrade from InDesign CS2 to InDesign CS5.5. I have indt file. It has been designed using the CS2 and now converted that indt file into CS5.5 using InDesign CS5.5. But I am facing some serious issue while doing export to pdf in CS5
-
Number of connections with JSP pool cache
I'm using a Bean from examples, its name: "ods", this is Pool Connection Cache, when a user start connection, this open 10 connections. In my project works 20 users, the DBA prefers don't use too many connections. The version of DB is 8.1.7 and web s
-
My magic mouse used with G5 has apparently died all of a sudden. Doesn't move the cursor.Fresh batteries don't fix. Is it really dead? Can it be revived?
-
Need help on Oracle9iAS (9.0.3.1.0) and JSF
I need informations about oracle 9iAS ans JSF. I have a webapp working perfectly on 10g but not on 9. My "WEB-INF/lib" directory contains the required jsf jars Even the jsf-cardemo application doesn't work on 9. Here is the exception : Oracle9iAS (9.