cancel
Showing results for 
Search instead for 
Did you mean: 

open file from with URL instead of wdDownloadFile

Former Member
0 Kudos

Hello everybody,

unfortunately we can't use the DownloadFile-UI to open a browserwindow to show the file (e.g. PDF, JPG ..).

We do not have a bytearray! Now we think about using a URL-Link.

a) Ist this possible?

b) How do path and File have to look for the URL Propeties (Slash, Backslash)

Thanks a lot

Regards Mairo

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Mario,

You can use a linktoURL ui element to point to the link and the target property can be set to say whether it needs to be opened in a new window.

About the url...you can save the file on the server some where...create and HTTP alias pointing to it and use it as the url...

check this weblog for creating an http alias...

/people/renjith.andrews/blog/2005/03/31/creating-an-http-alias-in-was

another option could be to include the file as part of your WD application itself and use a urlgenerator to get the url to that and use that url in the linktourl ui element. check for help on urlgenerator for this...

Thanks & Regards,

Renjith.

Former Member
0 Kudos

Hi Renjith,

thanks a lot. We tried to do this. Somethings gone wrong.

Could You give an example for the properties? Let asume the file to open is:

C:\temp\mypicture.jpg

Thanks a lot

Regards Mario

Former Member
0 Kudos

Hi Mario,

Pls put the file in the application server say C: empmypicture.jpg.

Then create an HTTP alias(<httpalias_created_on_Webas>) pointing to the folder c: emp in the WEBAS as it is shown in the weblog - https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1444. [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]

then the the url would be http://<webas>:<port>/<httpalias_created_on_Webas>/mypicture.jpg

Thanks & Regards,

Renjith

Former Member
0 Kudos

Hi Mario,

Go to visual admin->services->HTTP Provider

Click on the aliases tab

Give the name and path of the jpeg file

Save properties

Now if you give http://localhost:50000/<name>; you will get it

Regards

Rohit

Answers (1)

Answers (1)

Former Member
0 Kudos

Mario,

If you have a file, you always can get a byte array for IWDFileDownload control

VS