NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 48 49 50 51 52 … 93 Next »
Image Location in FireFox Help Needed

 
  • 0 Vote(s) - 0 Average
Image Location in FireFox Help Needed
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#11
2006-11-20, 01:36 AM
KingArgyle Wrote:I guess what I was looking for was not having to have the UNC in the URL at all. What I was suggesting was a virtual directory for the images. I don't think cassini itself has built in support for this, but there is an enhanced version called CassiniEx which does support virtual directories.

The advantage is that if I wanted to access my pictures from a computer that didn't have access to the network drive to view them, then the image can be viewed as if it were just in another directory on the existing web server. To me, changing the way FireFox has it's default preferences setup just to be able to access an image isn't the correct way to address the problem. It's a short cut method. A couple of different ways would be to either:

1. Have the images directory physically under the gbpvr webserver directory. (Not the recommended way)

2. Have the site wrap the UNC so that it isn't included in the URL or as a file:/// option. The script it self would access the files to be displayed, but it would appear to be as a http:// request instead of a file request. Again, I'm not familiar enough with the .Net control you are using to do this, and it may mean more work than just using an existing control to do it. However, I think it keeps the access method browser independent, and doesn't have people change their security settings or configuration files.

I just don't like the idea of having people to mess around with their configuration settings, to get it to work on a different browser when their are ways to get it to work without changing browser settings.

I agree....not sure why FireFox incorpoerated this Security Policy. It started in version 1.5. The Security Policy is what is forcing this config change....the browser itself can handle it.....it just isn't natively allowed to do so.

Just to note the file:/// does not show up anywhere in the url....you have to either view page source or right-click on the image and show the properties to see it.

Here is the URL that shows up in the Photo page that displays the image:
Code:
http://den:7647/gbpvr/Photo.aspx?pic=_wEFRFxcTmFzbGl0ZS1zbWJnXERpc2stNFxQaWN0dXJlc1xCYWx0aW1vcmUgMjAwM1xCYWx0aW1vcmUgMjAwMyAwMDEuanBn
This is what shows up in view page source:
Code:
<img id="picture" class="photo" src="file://///Naslite-smbg/Disk-4/Pictures/Baltimore%202003/Baltimore%202003%20001.jpg" border="0" style="height:480px;width:640px;" />&nbsp;<!-- Topbar end --><tr>
KingArgyle Wrote:As for the Thumbnails. If an image already has a thumbnail in it why not just stream the thumbnail itself? Maybe I'm misunderstanding that problem.

Thumbnails are just that a thumbnail....they are a picture that my abe 1"x1" max in size....enought o figure out what the picture is. If you then expand this 1"x1" thumbnail to something like 640x480 or 1280x960 you just get a crap picture since the thumbnail has to be scaled up to the new size....which just doesn't work.
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#12
2006-11-20, 02:26 AM
Normanr to the rescue.....he gave me an idea that I think we provide all of us what we are looking for......

I'll be back.... :-)
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
KingArgyle
Offline

Posting Freak

Posts: 1,271
Threads: 95
Joined: Nov 2004
#13
2006-11-20, 06:34 PM
When I'm refering to a URL, I'm referring not to just what shows up at the top of the browser but any link to resource like the following:

Code:
file://///Naslite-smbg/Disk-4/Pictures/Baltimore%202003/Baltimore%202003%20001.jpg"

So, that is why FireFox is having the problem, it's the added (and rightfully so) security it has for file access. Again, as Sub and I have both said, this option should really be replaced with an ASPX script that is called from the server.

Looking forward to seeing the new approach.
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#14
2006-11-22, 11:40 PM
Ok....new apprach is using what was already coded into EWA for displaying images from the file system. Normanr added it when we added channel icons to the guide. The channel icons are using this same image control.

I am now able to set the location of th picture to a serialized path and create a URL for it that utilizes the download.ashx page. This page passes it into backend code that actually streams the image to the browser.

Here is what the new URL of the image looks like:
Code:
http://localhost:7647/gbpvr/Photo.aspx?pic=download.ashx/-6,1?_wEFQ1xcTmFzbGl0ZS1zbWJnXERpc2stNFxQaWN0dXJlc1xDVU1DIEVhc3RlciBCcnVuY2ggMjAwMlxEU0NGMDAwNC5KUEc*
This works perfectly with no browser security changes at all. Big Grin
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): « Previous 1 2


Possibly Related Threads…
Thread Author Replies Views Last Post
  Skin help (correct location?) SFX Group 4 3,851 2018-01-24, 07:42 AM
Last Post: pBS
  Coverart / fanart image sizes??? bgowland 3 2,204 2014-02-16, 11:50 PM
Last Post: bgowland
  New web service clarification needed bgowland 6 3,194 2013-10-19, 02:36 AM
Last Post: bgowland
  Where does this image come from? bgowland 4 2,349 2013-02-13, 07:26 PM
Last Post: bgowland
  Problem with preview image for Pending Recordings Northpole 2 1,977 2012-08-14, 02:56 AM
Last Post: Northpole
  FanArt & displaying a background image Jaggy 2 1,693 2012-01-31, 11:39 PM
Last Post: sub
  Skin help needed for EventDetails.xml bgowland 7 3,266 2011-06-26, 11:55 PM
Last Post: Jaggy
  Which channel logo image formats does npvr support? bgowland 2 2,053 2011-03-06, 05:43 AM
Last Post: bgowland
  Image Caching imilne 6 2,518 2011-01-01, 11:45 PM
Last Post: sub
  MVP/NMT testers needed for Weather2 scb147 46 11,768 2010-03-03, 08:12 PM
Last Post: scb147

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode