Help coderanch get a
new server
by contributing to the fundraiser

Alberto de Paola

Greenhorn
+ Follow
since Jul 24, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Alberto de Paola

Hello Elliotte,

For someone that is still learning, is the book a valid source to learn the best way to write HTML?

Thanks,
Beto.
[ July 15, 2008: Message edited by: Alberto de Paola ]
[Thread hijack removed]
[ July 15, 2008: Message edited by: Bear Bibeault ]
Some specs I forgot:

some .pdf file of 200-400 KB weren't uploaded, while a real big 1.6 MB .pdf got right trough.
.txt files were 1-55 KB, and the mp3 was 2 MB.

I'm using the default configurations for DiskFileItemFactory
and FileItem.isInMemory() is TRUE for everyone.

hope it helps you help me

Beto.
Some specs I forgot:

some .pdf file of 200-400 KB weren't uploaded, while a real big 1.6 MB .pdf got right trough.
.txt files were 1-55 KB, and the mp3 was 2 MB.

I'm using the default configurations for DiskFileItemFactory
and FileItem.isInMemory() is TRUE for everyone.

hope it helps you help me

Beto.
Hi everybody:

I'm using commons-fileupload-1.2 and it's working just fine to upload ANY type of file to the server file system.

For that, I use the same example provided by them in the User Guide (http://jakarta.apache.org/commons/fileupload/using.html).

I need to put the file inside a database, hence I use the FileItem.get() or FileItem.getOutputStream() method to retrieve the binary content and put it in a blob field.

The problem is that with some files, both get() and getOutputStream(), the bytes I get represent blank objects of the file type I'm uploading.

There is no error, just wrong bytes.

It worked with .txt, .mp3 and some .pdf.
Till now, no Microsoft Office document has been uploaded.

I thought in some kind of trouble with the program version in witch the file was produced, what should explain why some .pdf are being correctly 'geted' and some not, but didn't tested it yet, because it didn't make sens to me.

I post here because the problem is not the DB but the get() or getOutputStream() methods, at least from my point of view.

I'm really with this...

Thanks in advance,

Beto.
Hi everybody:

I'm using commons-fileupload-1.2 and it's working just fine to upload ANY type of file to the server file system.

For that, I use the same example provided by them in the User Guide (http://jakarta.apache.org/commons/fileupload/using.html).

I need to put the file inside a database, hence I use the FileItem.get() or FileItem.getOutputStream() method to retrieve the binary content and put it in a blob field.

The problem is that with some files, both get() and getOutputStream(), the bytes I get represent blank objects of the file type I'm uploading.

There is no error, just wrong bytes.

It worked with .txt, .mp3 and some .pdf.
Till now, no Microsoft Office document has been uploaded.

I thought in some kind of trouble with the program version in witch the file was produced, what should explain why some .pdf are being correctly 'geted' and some not, but didn't tested it yet, because it didn't make sens to me.

I post here because the problem is not the DB but the get() or getOutputStream() methods, at least from my point of view.

I'm really with this...

Thanks in advance,

Beto.
17 years ago