• Post Reply Bookmark Topic Watch Topic
  • New Topic

Help! File Too Large error?  RSS feed

Donna Meyer
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a file that is being stored as XML in an Oracle db as a CLOB. It is being extracted in JAVA as a document file and an XSL translate is being done on it. All this works fine. Now to print the file to another file name on a different server, I'm creating a File object and trying to print it. I've tried numerous methods and I continue to get a truncated file. However, when using the PrintWriter method alone, I get the message above. Can someone advise me on why I'm getting this error and why the file is being truncated? Just so you know I've used numerous output stream methods such as the ones below with the same results.
PrintWriter file_out = new PrintWriter(new BufferedWriter(new FileWriter(wFile)));

FileWriter file_out = new FileWriter(wFile);
PrintWriter file_out = new PrintWriter(new FileWriter(wFile));
And I've flushed the buffer before closing.
I figure it has to be something stupid I'm missing, but what?
Thanks for any help on this,
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!