File could not be loaded due to size
Hi,
I was using the C program to upload a file, while this month the file was little bigger which is above 2 GB and the program was not able to detect that file, where when i split the file into two it can able to show that and uploading,
KIndly let me know any idea you have about this, and also let me know if any further information required??
In this code i am getting the warning File NOT AVAILABLE with 2 GB file in the upload path
Code:
fp = fopen64(text_path, "r"); /* fopen64() for open a 64-bits (or) large file */
/**-- warn if file is not present ---**/
if (fp == NULL) {
printf("File:%s NOT AVAILABLE\n", text_path);
} else {
/**--- else proceed with upload ----**/
/** Let's check the header first **/
head_check = get_head_info(text_path, db_files[ctr].date_pos, db_files[ctr].freq_pos, db_files[ctr].exp_date, db_files[ctr].exp_freq);
switch (head_check) {
case 0 : /** Mark as ok for upload**/
printf("File :%s\tDate:%s\tFrq.:%s -> ", db_files[ctr].file_name, db_files[ctr].exp_date, db_files[ctr].exp_freq);
if (normal_yn == 'S' || normal_yn == 's') {
mark = get_yes_no("OK to load :");
} else {
mark = 1;
printf("\b\b\bOK to Load :-> Y\n");
}
if(mark == 1)
strcpy(db_files[ctr].upload_y_n, "Y");
break;
Re: File could not be loaded due to size
Re: File could not be loaded due to size
Hi There is no issue in compiling but after that it is not detecting the file
Re: File could not be loaded due to size
Quote:
Originally Posted by
kvraman03
Hi There is no issue in compiling but after that it is not detecting the file
Did you note entry #4 in the thread 2kaud referred to?
Even though your program compiles it may not use the proper libraries. The compiler/linker may have to be explicitly instructed to include the right ones.