cancel
Showing results for 
Search instead for 
Did you mean: 

Upload an image at the URL specified using NWDSO4

Former Member
0 Kudos

Hi,

I want to upload an image at the path given in the form of URL, eg http://xyz:50000/testing

Here, testing is the folder in which i have to save the image.

The most important thing is that i am using NWDSO4 and NOT NWDSO4S.

Thanks

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Utkrash,

Login into visual admin and go to http provider and create an http alias name "testing" and give the complete path where you are going to store the files in server.

Get the host name and port of ur server and append this alias to store and retrieve the files.

Just go through this blog for more information..

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

Hope this helps you..

Regards,

Saleem

Former Member
0 Kudos

Helo Saleem,

This answer helped me a lot. But, if you see, i can display the images using the URL as per the blog. This is not what i am looking for.I want to save the images at that folder programatically.

Currently, we have to log in to the srver and save the images at the path for which HTTP alias is used to display the image.

But, we want to create a webdynpro application which will actually upload/save the images for us in that folder.

Thanks,

Utkarsh Kanade.

Former Member
0 Kudos

Hi Utkrash,

Go thorough this pdf

http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/607e9392-8167-2b10-b9a8-e0aa297e8...

Revert back if u need more inormation on this.

Regards,

Saleem

Former Member
0 Kudos

Hi Saleem,

The solution is valid for NWDS04s . But , as stated earlier, my version is NWDS04 , where we do not have a dictionary type Resource. This dictionary type is being used in the link suggested by you.

Thanks.

Edited by: utkarsh_SPARTA on Sep 29, 2009 9:26 AM

matteo_fusi2
Participant
0 Kudos

Hi,

you can use the attribute data of the file upload UI element,

and bind it with a context element of type binary (byte[]).

Matteo

Former Member
0 Kudos

Hello Matteo,

I have already done this. I am looking for the code to be written after this step.

Thanks

matteo_fusi2
Participant
0 Kudos

Hi,

I think you can use the code posted by Saleem,

with an unique write:

op.write((wdContext.currentContextElement().getData());

Regards

Matteo

matteo_fusi2
Participant
0 Kudos

Hi,

if your images are in the portal server, you can put the images in the KM, and referece these images direcly:

in the source attribute of the images element you can specify:

/irj/go/km/docs/<KM image path>

Regards

Matteo

Edited by: Matteo Fusi on Sep 25, 2009 11:26 AM

vipin_v2
Participant
0 Kudos

Hi Utkarsh,

check this link

With Regards,

Vipin.