cancel
Showing results for 
Search instead for 
Did you mean: 

Saving SVG Image

Former Member
0 Kudos

Hello,

I am building a SVG Image and using Image Saver Action Block. I would like to save the image in the

in the project images folder. I can do this by specify the folder location.

u201CD:/usr/sap/.../JC00/j2ee/cluster/server0/apps/sap.com/xappsxmiiear/servlet_jsp/XMII/......./images/abcd.jpgu201D

It works fine, The problem with this approach is that as we promote the source into QA and PROD. We need to change the path.

I tried using u201Cserver://XMII/CM/.../images/abcd.jpgu201D but did not work.

Looking for the expert advice...

Thanks

Vikas

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

try web or db instead of server

Former Member
0 Kudos

No - didn't work, at the same time got no error. Just to double check, I verified the Images folder at MII Server.

Thanks

Vikas

agentry_src
Active Contributor
0 Kudos

Vikas,

If you are going to use the image in a web page, you should probably use web: instead of db so that it is published. If you are using it internally in a MII transaction, then use db: which has less overhead.

Good luck,

Mike

jcgood25
Active Contributor
0 Kudos

And to add to Christian's point, a nice 'trick' to help you with the path would be to take this image and import it into your desired Project WEB folder, then drag it into a TRX and look at the configure dialog path. This should help you construct the path in your saver logic. This will likely start with db:// and switching to web:// should be as simple as switching the prefix and removing the WEB subfolder down in the path.

Regards,

Jeremy

agentry_src
Active Contributor
0 Kudos

Vikas,

In your MII Workbench, look under the Web tab and find your project name. Under there is a folder named WEB which should contain your image. If the path did not exist previously, it will have built it when saving the image.

Good luck,

Mike

Former Member
0 Kudos

Thanks Christian, Jeremy and Michael...

For some strange reason, The suggestion by Christian did not work first time.

It is working with both web and db prefix and I am using db://../WEB/images/abcd.jpg as suggested..

Thank again!!

Vikas

agentry_src
Active Contributor
0 Kudos

You are quite welcome.

For your file, you may have to refresh the folder in order to see a newly created object. That is probably why you did not see it the first time around.

Regards,

Mike

jcgood25
Active Contributor
0 Kudos

If you are incorporating these server generated svg images into web pages for the user, you will want to use the web:// format so that not only are the images saved into the NW database, but so they are also auto published to the web AS file location for the <img/> tag relative references.

The workbench shows the DB, the browser will need the WEB.

Answers (0)