TIWURLWindow and Cash items

<< Click to Display Table of Contents >>

Navigation:  Forum >

TIWURLWindow and Cash items

Forum link

 

 

 


 

11-23-2024, 04:19 PM:

 

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

 

 

 


 

11-23-2024, 06:14 PM:

 

>>Is it possible to serve up a pdf image from the UserCache instead of a folder  under wwwroot?

 

This should work:

 

clip0023

 

 

 


 

11-25-2024, 05:58 AM:

 

Once I got my mime types straightened out all is well.

 

thank you.