Atozed Forums
TIWURLWindow and Cash items - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: TIWURLWindow and Cash items (/thread-4720.html)



TIWURLWindow and Cash items - lfeliz - 11-23-2024

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


RE: TIWURLWindow and Cash items - MJS@mjs.us - 11-23-2024

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

This should work:

[Image: clip0023.png]


RE: TIWURLWindow and Cash items - lfeliz - 11-25-2024

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

thank you.