Quantcast
Viewing all articles
Browse latest Browse all 274

TIWURLWindow and Cash items

Hello,

Sorry for cross post, but I first started using CGPDFViewer and switched to TIWURLWindow to support jpg and PNG.

Is it possible to serve up a pdf image from the UserCache instead of a folder  under wwwroot?   I have an app that users need to display documents from a vast catalog and  dropping a copy in in the user cache.  

What I attempted to do is use the webapplication.UserCacheUrlBase and append the temp pdf file  name (which I verified does exists)  and it is not able to display the file. My guess this is probably by design and I may have to create my on session  folder to serve files from under wwwroot and clean it up when session is destroyed as well as on app startup/shutdown.

Since the applicatin is only accessed over a internal vpn  For now I have added a symlink in wwwroot to the document store until I find another way. The application has access to the folder as users can add files to document storage.   I switched to URLWindow to allow a frame in app to view the docs instead of opening lots of tabs (which will still be an option  if they wish (which I normally do via the USerCache and setting the mimetype when it dowloads).

Cheers!

- Lou

Viewing all articles
Browse latest Browse all 274

Trending Articles