cancel
Showing results for 
Search instead for 
Did you mean: 

How to upload and download 'application/octet-stream' mime typed files?

0 Kudos

How to upload and download 'application/octet-stream' mime typed files?

I followed following link for upload and download functionality.

http://wiki.sdn.sap.com/wiki/display/WDABAP/Upload+and+Download+files+in+Webdynpro+ABAP

But its still not working.

Guys please help me in it...

Thanks in advance

Regards,

Sachin.

9960858996

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi sachin,

FileUploadUIElement & FileDownloadUIElement can be used regardless of the mime type of the file to be upload or downloaded.

Regards,

Fareez

0 Kudos

Hi Fareez,

Thanks for reply,

MIME type means its one of the property of FileUploadUIElement & FileDownloadUIElement .

I had uploaded files of 'application/octet-stream' (.MSG(Out Look emails))  but its not able to open in same format which i uploaded.

Its still not working please help me Fareez

Regards,

Sachin.

9960858996

Former Member
0 Kudos

Hi sachin,

While uploading the file, make user you save the mime type of the file in a separate column. And during download get the mime type from the database and set it in the FileDownloadUIElement.

Otherwise try to use cl_wd_runtime_services=>attach_file_to_response

Regards,

Fareez

0 Kudos

Thanks Fareez,

Its working fine

Please tell me one thing ,

I have used LinkeToAction element in in Table for downloading .

Can u tell me if click on ne link of table how can i know that which row i clicked?

Please help me in it

Regards,

Sachin ,

9960858996.

Former Member
0 Kudos

Hi,

On the method of the action, there is a parameter wdevent. It will contain the information.

elem = wdevent->get_context_element( ).

ind = elem->get_index().

This will give the index (line number) of the row of the table clicked. From this you can decide which file to download,

Hope it helps,

Regards,

Fareez

0 Kudos

Hi Fareez,

here elem is table type.

but there is not single entry in this table is coming while clicking on LinkeToAction element.

Regards,

Sachin.

9960858996.

0 Kudos

Hi Fareez,

Data is coming in ELEM but when we select row of table only.

But here i am not selecting any thing i am just clicking on LinkToAction without selecting Row.

Please help me.

Regards,

Sachin.

9960858996.

Former Member
0 Kudos

Hi sachin,

You need not select. Clicking on the LinkToAction will automatically return you that particular row. The wdevent of the action is specific to that action. This has worked perfect in my cases.

Regards,

Fareez.

0 Kudos

Hi Fareez.,


Thanks a lot.

You Rocks.

I resolved  all requirement by your all replies.

Thanks !!

Regards,

Sachin.

9960858996.


Former Member
0 Kudos

Thank you sachin.

Regards,

Fareez

Answers (0)