Home > database >  PB to the database read images, etc. According to problems of large files
PB to the database read images, etc. According to problems of large files

Time:09-24

PB with SELECTBLOB statements and fileopen function according to read the content to generate the corresponding temporary files, reoccupy ShellExecuteA external function open these generated file, now the problem is only generates a file, if update the data in the database and then generate the temporary file again to cover the original file, and the temporary file content is the same, or the file generated last time, use ShellExecuteA cannot open the file, unless removed manually which had generated a temporary file, to display content has been changed, ShellExecuteA also can open the file, and checked, the data to the database to store there is no problem, what reason is this excuse me? And every open file with fileclose shut down,

CodePudding user response:

To use this method to write files
PB9, speaking, reading and writing method of large capacity file http://blog.csdn.net/yyoinge/article/details/6935768

CodePudding user response:

I have given the file is larger than 32765 limit is written in the way you said I said to the database access data should it doesn't matter is generated files can only be generated in a generate other temporary files for cover not of the same name or the file generated at the beginning,

CodePudding user response:

I use fileopen fileread filewrite these functions not? Where are they and oleobject to read and write files difference, every time I'm generate temporary files with the same, is first delete the original file with the same, so also not make,

CodePudding user response:

I'm no good with your method tried to create the first file has nothing to create a second file with the same name to cover and then use a ShellExecuteA open found or not and the try
ADODB. Savetofile (as_file, 2)
The catch (oleruntimeerror er)
Messagebox (' prompt ', 'can't write files to [' + as_file +]! ~ r ~ n the possible reasons are: (1) the file path does not exist, (2) not enough disk space ')
Li=1//can't save the file, the possible reasons are: (1) as_file is wrong, (2) not enough disk space
End the try

Any error messagebox (' prompt ', 'can't write files to [' + as_file +]! ~ r ~ n the possible reasons are: (1) the file path does not exist, (2) not enough disk space ') the reason for what a
  • Related