cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to copy large files via Webdynpro FileUpload API ?

Former Member
0 Kudos

Hi,

I have created a webdynpro application in which I need to upload a large file to the machine hosting J2EE server (or any other physical file location on network).

The file size can go upto 2GB.

The normal way of using FileUpload UI feature wherein the file is uploaded as byte stream into the context of view controller fails as after 30MB of file size, the JVM runs out of memory.

Is there a way by out of this problem ?

Regards,

Sameer

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Sameer,

WD has this problem, at least till NW04s.

My advise: better use plain servlet for file uploads instead.

Next, it would be much better to use desktop application or signed applet that split file up to small chunks and submit / re-submit / resume this parts. Also special file handling required at server part. 2Gb files uploads is very specific task, so it should be solved with suitable technology, browser file upload is wrong choice here.

Valery Silaev

EPAM Systems

http://www.NetWeaverTeam.com

Former Member
0 Kudos

Hi Valery,

Actually, this browse and upload functionality is very central to the webdynpro application which I have coded. There must be a work around, as I have to use the browser.

Is there is a way by which I can get the qualified path of the file which I have browsed and attached, so that I can use jcifs to copy from that path to another path on some remote server, without the file being uploaded to context in the first place?

The only properties of FileUpload APIs is data and filename both of which are unsuitable. data contains the binary stream of file, and is bound to the context and filename is just filename without qualified path.

I would like to have the FileUpload UI feature without the precise method of standard upload. Is that possible ?

Regards.

Sameer

Former Member
0 Kudos

Sameer,

<i>Is there is a way by which I can get the qualified path of the file which I have browsed and attached...</i>

Some versions of IE send this informations, others - not. Neither Mozilla, nor Opera sends full path information due to security reasons.

<i>I would like to have the FileUpload UI feature without the precise method of standard upload. Is that possible?</i>

No

VS

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Valery,

So do you think we can upload files upto 25 MB on these applications. Do you know of parameters in Visual Admin which will optimize this?

Regards

Jay Kapadia