est il possible en java de creer des fichiers temporaires,
Explication:
je dois extraire un document dune base de donne (il a ete sauver en Blob)
et puis je l'envoie en flux outputstream dans IE.
Cela fonctionne mon probleme est que la DB postgresql ne veut que
sauvegarder le fichier sur le disque d'ou ma question si je le sauvegarde
dans un tmp ????
Merci
josé
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Cette action est irreversible, confirmez la suppression du commentaire ?
Signaler le commentaire
Veuillez sélectionner un problème
Nudité
Violence
Harcèlement
Fraude
Vente illégale
Discours haineux
Terrorisme
Autre
GilloS
File.createTempFile( )
"Jose" wrote in message news:
Bonjour,
est il possible en java de creer des fichiers temporaires,
Explication:
je dois extraire un document dune base de donne (il a ete sauver en Blob)
et puis je l'envoie en flux outputstream dans IE.
Cela fonctionne mon probleme est que la DB postgresql ne veut que sauvegarder le fichier sur le disque d'ou ma question si je le sauvegarde dans un tmp ????
Merci josé
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =----- http://www.newsfeeds.com - The #1 Newsgroup Service in the World! -----== Over 100,000 Newsgroups - 19 Different Servers! =-----
File.createTempFile( )
"Jose" <Jose.Idon@cybernet.be> wrote in message
news:3fa14386_6@corp.newsgroups.com...
Bonjour,
est il possible en java de creer des fichiers temporaires,
Explication:
je dois extraire un document dune base de donne (il a ete sauver en
Blob)
et puis je l'envoie en flux outputstream dans IE.
Cela fonctionne mon probleme est que la DB postgresql ne veut que
sauvegarder le fichier sur le disque d'ou ma question si je le sauvegarde
dans un tmp ????
Merci
josé
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
est il possible en java de creer des fichiers temporaires,
Explication:
je dois extraire un document dune base de donne (il a ete sauver en Blob)
et puis je l'envoie en flux outputstream dans IE.
Cela fonctionne mon probleme est que la DB postgresql ne veut que sauvegarder le fichier sur le disque d'ou ma question si je le sauvegarde dans un tmp ????
Merci josé
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =----- http://www.newsfeeds.com - The #1 Newsgroup Service in the World! -----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Sandra
Un cour complet sur les fichiers temporaires
Temporary Files
In programming applications you often need to use temporary files -- files that are created during program execution to hold transient information. A typical case is a language compiler that uses several passes (such as preprocessing or assembly) with temporary files used to hold the output of the previous pass. In some cases, you could use memory instead of disk files, but you can't always assume that the required amount of memory will be available.
One feature in JDK 1.2 is the ability to create temporary files. These files are created in a specified directory or in the default system temporary directory (such as C:TEMP on Windows systems). The temporary name is something like the following:
t:tmptmp-21885.tmp The same name is not returned twice during the lifetime of the Java1 virtual machine. The returned temporary file is in a File object and can be used like any other file. Note: With Unix, you may find that your input file has to also reside in the same file system where the temporary files are stored. The renameTo method cannot rename files across file systems.
Here is an example of using temporary files to convert an input file to upper case:
import java.io.*;
public class upper { public static void main(String args[]) { // check command-line argument
The input file is copied to the temporary file, and the file contents are converted to upper case. The temporary file is then renamed back to the input file.
JDK 1.2 also provides a mechanism whereby files can be marked for "delete on exit." That is, when the Java virtual machine exits, the file is deleted. An aspect worth noting in the above program is that this feature handles the case where the temporary file is created, and then an error occurs (for example, the input file does not exist). The delete-on-exit feature guarantees that the temporary file is deleted in the case of abnormal program termination.
"GilloS" wrote in message news:bnrh57$24on$
File.createTempFile( )
"Jose" wrote in message news:
Bonjour,
est il possible en java de creer des fichiers temporaires,
Explication:
je dois extraire un document dune base de donne (il a ete sauver en Blob)
et puis je l'envoie en flux outputstream dans IE.
Cela fonctionne mon probleme est que la DB postgresql ne veut que sauvegarder le fichier sur le disque d'ou ma question si je le sauvegarde
dans un tmp ????
Merci josé
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =----- http://www.newsfeeds.com - The #1 Newsgroup Service in the World! -----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Un cour complet sur les fichiers temporaires
Temporary Files
In programming applications you often need to use temporary files -- files
that are created during program execution to hold transient information. A
typical case is a language compiler that uses several passes (such as
preprocessing or assembly) with temporary files used to hold the output of
the previous pass. In some cases, you could use memory instead of disk
files, but you can't always assume that the required amount of memory will
be available.
One feature in JDK 1.2 is the ability to create temporary files. These files
are created in a specified directory or in the default system temporary
directory (such as C:TEMP on Windows systems). The temporary name is
something like the following:
t:tmptmp-21885.tmp
The same name is not returned twice during the lifetime of the Java1 virtual
machine. The returned temporary file is in a File object and can be used
like any other file. Note: With Unix, you may find that your input file has
to also reside in the same file system where the temporary files are stored.
The renameTo method cannot rename files across file systems.
Here is an example of using temporary files to convert an input file to
upper case:
import java.io.*;
public class upper {
public static void main(String args[])
{
// check command-line argument
The input file is copied to the temporary file, and the file contents are
converted to upper case. The temporary file is then renamed back to the
input file.
JDK 1.2 also provides a mechanism whereby files can be marked for "delete on
exit." That is, when the Java virtual machine exits, the file is deleted. An
aspect worth noting in the above program is that this feature handles the
case where the temporary file is created, and then an error occurs (for
example, the input file does not exist). The delete-on-exit feature
guarantees that the temporary file is deleted in the case of abnormal
program termination.
"GilloS" <toto@toto.com> wrote in message
news:bnrh57$24on$1@news6.isdnet.net...
File.createTempFile( )
"Jose" <Jose.Idon@cybernet.be> wrote in message
news:3fa14386_6@corp.newsgroups.com...
Bonjour,
est il possible en java de creer des fichiers temporaires,
Explication:
je dois extraire un document dune base de donne (il a ete sauver en
Blob)
et puis je l'envoie en flux outputstream dans IE.
Cela fonctionne mon probleme est que la DB postgresql ne veut que
sauvegarder le fichier sur le disque d'ou ma question si je le
sauvegarde
dans un tmp ????
Merci
josé
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
In programming applications you often need to use temporary files -- files that are created during program execution to hold transient information. A typical case is a language compiler that uses several passes (such as preprocessing or assembly) with temporary files used to hold the output of the previous pass. In some cases, you could use memory instead of disk files, but you can't always assume that the required amount of memory will be available.
One feature in JDK 1.2 is the ability to create temporary files. These files are created in a specified directory or in the default system temporary directory (such as C:TEMP on Windows systems). The temporary name is something like the following:
t:tmptmp-21885.tmp The same name is not returned twice during the lifetime of the Java1 virtual machine. The returned temporary file is in a File object and can be used like any other file. Note: With Unix, you may find that your input file has to also reside in the same file system where the temporary files are stored. The renameTo method cannot rename files across file systems.
Here is an example of using temporary files to convert an input file to upper case:
import java.io.*;
public class upper { public static void main(String args[]) { // check command-line argument
The input file is copied to the temporary file, and the file contents are converted to upper case. The temporary file is then renamed back to the input file.
JDK 1.2 also provides a mechanism whereby files can be marked for "delete on exit." That is, when the Java virtual machine exits, the file is deleted. An aspect worth noting in the above program is that this feature handles the case where the temporary file is created, and then an error occurs (for example, the input file does not exist). The delete-on-exit feature guarantees that the temporary file is deleted in the case of abnormal program termination.
"GilloS" wrote in message news:bnrh57$24on$
File.createTempFile( )
"Jose" wrote in message news:
Bonjour,
est il possible en java de creer des fichiers temporaires,
Explication:
je dois extraire un document dune base de donne (il a ete sauver en Blob)
et puis je l'envoie en flux outputstream dans IE.
Cela fonctionne mon probleme est que la DB postgresql ne veut que sauvegarder le fichier sur le disque d'ou ma question si je le sauvegarde
dans un tmp ????
Merci josé
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =----- http://www.newsfeeds.com - The #1 Newsgroup Service in the World! -----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Jose
Merci le groupe Resolu ... josé
"Sandra" a écrit dans le message de news:bntk8o$k$
Un cour complet sur les fichiers temporaires
Temporary Files
In programming applications you often need to use temporary files -- files that are created during program execution to hold transient information. A typical case is a language compiler that uses several passes (such as preprocessing or assembly) with temporary files used to hold the output of the previous pass. In some cases, you could use memory instead of disk files, but you can't always assume that the required amount of memory will be available.
One feature in JDK 1.2 is the ability to create temporary files. These files
are created in a specified directory or in the default system temporary directory (such as C:TEMP on Windows systems). The temporary name is something like the following:
t:tmptmp-21885.tmp The same name is not returned twice during the lifetime of the Java1 virtual
machine. The returned temporary file is in a File object and can be used like any other file. Note: With Unix, you may find that your input file has
to also reside in the same file system where the temporary files are stored.
The renameTo method cannot rename files across file systems.
Here is an example of using temporary files to convert an input file to upper case:
import java.io.*;
public class upper { public static void main(String args[]) { // check command-line argument
The input file is copied to the temporary file, and the file contents are converted to upper case. The temporary file is then renamed back to the input file.
JDK 1.2 also provides a mechanism whereby files can be marked for "delete on
exit." That is, when the Java virtual machine exits, the file is deleted. An
aspect worth noting in the above program is that this feature handles the case where the temporary file is created, and then an error occurs (for example, the input file does not exist). The delete-on-exit feature guarantees that the temporary file is deleted in the case of abnormal program termination.
"GilloS" wrote in message news:bnrh57$24on$
File.createTempFile( )
"Jose" wrote in message news:
Bonjour,
est il possible en java de creer des fichiers temporaires,
Explication:
je dois extraire un document dune base de donne (il a ete sauver en Blob)
et puis je l'envoie en flux outputstream dans IE.
Cela fonctionne mon probleme est que la DB postgresql ne veut que sauvegarder le fichier sur le disque d'ou ma question si je le sauvegarde
dans un tmp ????
Merci josé
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =----- http://www.newsfeeds.com - The #1 Newsgroup Service in the World! -----== Over 100,000 Newsgroups - 19 Different Servers! =-----
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =----- http://www.newsfeeds.com - The #1 Newsgroup Service in the World! -----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Merci le groupe Resolu ...
josé
"Sandra" <Sandra_a@tiscali.fr> a écrit dans le message de
news:bntk8o$k$1@news.tiscali.fr...
Un cour complet sur les fichiers temporaires
Temporary Files
In programming applications you often need to use temporary files -- files
that are created during program execution to hold transient information. A
typical case is a language compiler that uses several passes (such as
preprocessing or assembly) with temporary files used to hold the output of
the previous pass. In some cases, you could use memory instead of disk
files, but you can't always assume that the required amount of memory will
be available.
One feature in JDK 1.2 is the ability to create temporary files. These
files
are created in a specified directory or in the default system temporary
directory (such as C:TEMP on Windows systems). The temporary name is
something like the following:
t:tmptmp-21885.tmp
The same name is not returned twice during the lifetime of the Java1
virtual
machine. The returned temporary file is in a File object and can be used
like any other file. Note: With Unix, you may find that your input file
has
to also reside in the same file system where the temporary files are
stored.
The renameTo method cannot rename files across file systems.
Here is an example of using temporary files to convert an input file to
upper case:
import java.io.*;
public class upper {
public static void main(String args[])
{
// check command-line argument
The input file is copied to the temporary file, and the file contents are
converted to upper case. The temporary file is then renamed back to the
input file.
JDK 1.2 also provides a mechanism whereby files can be marked for "delete
on
exit." That is, when the Java virtual machine exits, the file is deleted.
An
aspect worth noting in the above program is that this feature handles the
case where the temporary file is created, and then an error occurs (for
example, the input file does not exist). The delete-on-exit feature
guarantees that the temporary file is deleted in the case of abnormal
program termination.
"GilloS" <toto@toto.com> wrote in message
news:bnrh57$24on$1@news6.isdnet.net...
File.createTempFile( )
"Jose" <Jose.Idon@cybernet.be> wrote in message
news:3fa14386_6@corp.newsgroups.com...
Bonjour,
est il possible en java de creer des fichiers temporaires,
Explication:
je dois extraire un document dune base de donne (il a ete sauver en
Blob)
et puis je l'envoie en flux outputstream dans IE.
Cela fonctionne mon probleme est que la DB postgresql ne veut que
sauvegarder le fichier sur le disque d'ou ma question si je le
sauvegarde
dans un tmp ????
Merci
josé
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
"Sandra" a écrit dans le message de news:bntk8o$k$
Un cour complet sur les fichiers temporaires
Temporary Files
In programming applications you often need to use temporary files -- files that are created during program execution to hold transient information. A typical case is a language compiler that uses several passes (such as preprocessing or assembly) with temporary files used to hold the output of the previous pass. In some cases, you could use memory instead of disk files, but you can't always assume that the required amount of memory will be available.
One feature in JDK 1.2 is the ability to create temporary files. These files
are created in a specified directory or in the default system temporary directory (such as C:TEMP on Windows systems). The temporary name is something like the following:
t:tmptmp-21885.tmp The same name is not returned twice during the lifetime of the Java1 virtual
machine. The returned temporary file is in a File object and can be used like any other file. Note: With Unix, you may find that your input file has
to also reside in the same file system where the temporary files are stored.
The renameTo method cannot rename files across file systems.
Here is an example of using temporary files to convert an input file to upper case:
import java.io.*;
public class upper { public static void main(String args[]) { // check command-line argument
The input file is copied to the temporary file, and the file contents are converted to upper case. The temporary file is then renamed back to the input file.
JDK 1.2 also provides a mechanism whereby files can be marked for "delete on
exit." That is, when the Java virtual machine exits, the file is deleted. An
aspect worth noting in the above program is that this feature handles the case where the temporary file is created, and then an error occurs (for example, the input file does not exist). The delete-on-exit feature guarantees that the temporary file is deleted in the case of abnormal program termination.
"GilloS" wrote in message news:bnrh57$24on$
File.createTempFile( )
"Jose" wrote in message news:
Bonjour,
est il possible en java de creer des fichiers temporaires,
Explication:
je dois extraire un document dune base de donne (il a ete sauver en Blob)
et puis je l'envoie en flux outputstream dans IE.
Cela fonctionne mon probleme est que la DB postgresql ne veut que sauvegarder le fichier sur le disque d'ou ma question si je le sauvegarde
dans un tmp ????
Merci josé
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =----- http://www.newsfeeds.com - The #1 Newsgroup Service in the World! -----== Over 100,000 Newsgroups - 19 Different Servers! =-----
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =----- http://www.newsfeeds.com - The #1 Newsgroup Service in the World! -----== Over 100,000 Newsgroups - 19 Different Servers! =-----