Yeah hash comparison on writes is a bit of overkill. If you can't rely
on what is written to disk to actually be written to disk we are all in
major trouble!
Also, java handles exceptions for permissions, out of disk space, etc,
pretty well. just try, catch with appropriate handling as per your
application needs...
Java 7 brings a lot of enhancements in nio2 also, so even less code to
write, or you could use commons IO like you suggested...
I think clob encoding is also up to the user application. If it was me I
would just do a binary copy and leave it in the source encoding, but it
really depends on what you are trying to do...
On 25/04/2014 3:09 AM, Thomas Mueller wrote:
Hi,
Sorry I don't understand "comparison of SHA-1 (MD4. MD5)"
>So writing it *once and well* for all
Well, so far it's not a popular feature request.
Regards,
Thomas
On Wed, Apr 23, 2014 at 9:20 AM, t603 <stepan.rybar.1...@gmail.com
<mailto:stepan.rybar.1...@gmail.com>> wrote:
On Wednesday, April 23, 2014 9:00:40 AM UTC+2, Noel Grandin wrote:
Why not just retrieve the data as a ResultSet, call
getInputStream() on the ResultSet and write the InputStream to
disk.
Seems easy enough.
Writing such *really well coded* function in Java could be a job
for experienced Java programmer - to handle all Exceptions like
target directory permissions, free space size, encoding of CLOB,
check of correctness of writing using comparison of SHA-1 (MD4.
MD5) hash between file content and database LOB etc. Or to use
some File IO like one from Apache. So writing it *once and well*
for all in H2 as SQL function should be more effective and
trustworthy, moreover in case, than FILE_READ already exists. That
is my humble opinion.
--
You received this message because you are subscribed to the Google
Groups "H2 Database" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to h2-database+unsubscr...@googlegroups.com
<mailto:h2-database+unsubscr...@googlegroups.com>.
To post to this group, send email to h2-database@googlegroups.com
<mailto:h2-database@googlegroups.com>.
Visit this group at http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google
Groups "H2 Database" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to h2-database+unsubscr...@googlegroups.com
<mailto:h2-database+unsubscr...@googlegroups.com>.
To post to this group, send email to h2-database@googlegroups.com
<mailto:h2-database@googlegroups.com>.
Visit this group at http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "H2
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to h2-database+unsubscr...@googlegroups.com.
To post to this group, send email to h2-database@googlegroups.com.
Visit this group at http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.