Skip to Content
0
Mar 21, 2009 at 02:07 PM

Downloading file from BSP Page

56 Views

Dear Friends!

How are you!

I wish to upload one file to the server and want to receive it back in another page. What I have done is,

Uploading the file:

1. I have uploaded the file using fileUpload, then use pass the filecontent

2. XSTRING field data to the function module SCMS_XSTRING_TO_BINARY to convert it to binary.

3 I call the function module BINARY_RELATION_CREATE to save the file.

Downloading the file: ( In another page ).

1.I call the function module BDS_GOS_CONNECTIONS_GET and received the table where file is stored.

2. i pass the location and their information to next three steps and get the file_content

Now I have the file_content, file_name, file_length, and file_mime_type (?) instead of it i have document_class "tex" for text file.

3. I have all this information in another page ( NOW WHAT ? )

I have studied the various examples from blogs and other people's posts as well but I am not able to re-create it.

Well in fileUpload example we just simply upload the file and then receive the same information from the server over http response and we have the file there.. but i have the same information.. now Please tell me.. how to re-create the file what i have uploaded..

your any help will be appreciated.

Thanking you

Regards

Naeem

Edited by: Naim Khan S Babi on Mar 21, 2009 7:38 PM

Edited by: Naim Khan S Babi on Mar 21, 2009 7:40 PM