pdf_output plugin broke in Web Client with media images

I have submitted this as a case, but it was closed as a “wont-fix”, and I wanted to see what other options there were, and possibly if this could be considered a second time to fix.

I have a form and the form includes an HTML_AREA on it, and part of the html references images using “media:///”. Using Print Preview or printing with pdf_output plugin work fine from Smart Client. However in Web Client the images don’t load. You just see red ‘x’ where the images should be. Since the pdf is generated server-side, why does this work differently in Web Client? Is there any plan on supporting this in the future?

I know I could write my own JSP page to retrieve back the image bytes by passing in parameters similar to the blobloader, but I just don’t see why this extra step should be needed.

I think a case id would be helpful here

PDF’s are generated on te serverside, and on the serverside urls like media:/// cant be resolved.

tomcat on the server already registers a “URLStreamHandlerFactory” so we cant set one again. (what we use in the smart client)
Problem is that java isnt very wel designed in this area, what i want is just URL.addURLStreamHandler(“media”,myhandler); that would fix the problem we have here
But we dont have such a method.

The other option is to do it by configuring a system property that would point to a class. But that would again result in problems with classloading…

But i think i found a 3th way of doing the right url resolving, i am investigating it right now.

Thanks Johan. FYI case was 252733 and had a sample solution attached.

the 3th option seems to work, so if fixed it for now in 5.0.x

How about 4.1.x? Please :)

backported the fix to 4.1.x

Did this ever get fixed in 3.5.x?

no 3.5 didnt get this enhancement.