Re: [02/03] web app to display tiff to pdf
Quote:
Originally Posted by Christopher_Arm
Ok. Dumb question I am asking here but is impersonation in the web config set the same way in Visual Studio 2008 ?
Yes.
Re: [02/03] web app to display tiff to pdf
Quote:
Originally Posted by Christopher_Arm
Ok I just checked this with MSDN and it is the same
You place this in between <system.web> </system.web>
And still I get network path not found issue and the path is a valid one and the Image1.ImageUrl picks up the path as stated.
Could it be before it gets to this part here
Code:
Dim _stream As System.IO.Stream = New System.IO.FileStream(Image1.ImageUrl, System.IO.FileMode.Open)
that Image1.ImageUrl needs to be passed in a byte array of some sort as a buffer before it is streamed ? But then would that even make a difference in resolving the problem it doesn't recognize the path as valid evne if it were passed through a byte the outcome would still be the same wouldn't it ?
I don't see what you placed in the web.config file. Show me exactly what you put there.
Did you set windows authentication in the security properties for the virtual directory?
Did you debug and step through the code?
Does the path that you're passing to it actually exist? Did you perform the appropriate replacements to make it a proper UNC path and not a normal e:\ path?
Re: [02/03] web app to display tiff to pdf
Quote:
Originally Posted by Christopher_Arm
Ok. Last thing to try that I can think of... just humor me here Mendhak...hmm ok how about...
each time the query is called my SELECT statement that has "fullpath" in it. How about placing the "fullpath" string data which has the path pointing to x image and save it to a ImageFolder ? I have done so with a filefield control in the past but not a textbox.
I have forgotten how do that exactly in any case.
Then like I said earlier we can take the existing data from the folder and stream that out to get the image in question.
The data in "fullpath" is a string. It is a string which means it is an entity that lives in the memory and means nothing in terms of the data to be saved to disk. It's like the number "7". You cannot save 7 to disk, you'll need to create a file and put it in there. But then it won't become 7, it'll become a file that happens to contain 7.
Similarly for fullpath, it won't actually be the file you want because it's a string and so will not help you at all.
Re: [02/03] web app to display tiff to pdf
Quote:
Originally Posted by mendhak
The data in "fullpath" is a string. It is a string which means it is an entity that lives in the memory and means nothing in terms of the data to be saved to disk. It's like the number "7". You cannot save 7 to disk, you'll need to create a file and put it in there. But then it won't become 7, it'll become a file that happens to contain 7.
Similarly for fullpath, it won't actually be the file you want because it's a string and so will not help you at all.
I agree. This might be a losing battle after all simply because the program from a logical standpoint works fine. It takes a tif file and put it on display from a physical disk path from the sample I used. However the problem exists with the actual physical path I have been provided. I did place the following in between <system.web></system.web> in my web.config file in that case <identity impersonate = "true" > and so on and that was fine but it did not solve the network path error I was getting at all.
I have also reasoned that the path not only does not exist at least from the angle where I wanted to get the path from the database and directly stream it and that was e:\ blah blah blah and that showed a device not ready error as e :\ is my dvd-RW. And the replace statement that replaced e:\ with uncshare\doc\path.tif did not work because I did not have permissions to access it from the admin.
Again this has nothing to do with the program as written..this is a network share issue. For all intents and purposes I have accomplished my objectives..the issue has become one of data integrity or rather data reliability.
Re: [02/03] web app to display tiff to pdf
Quote:
Originally Posted by Christopher_Arm
I agree. This might be a losing battle after all simply because the program from a logical standpoint works fine. It takes a tif file and put it on display from a physical disk path from the sample I used. However the problem exists with the actual physical path I have been provided. I did place the following in between <system.web></system.web> in my web.config file in that case <identity impersonate = true/ > and so on and that was fine but it did not solve the network path error I was getting at all.
And windows authentication set to true in IIS?
Re: [02/03] web app to display tiff to pdf
Quote:
Originally Posted by mendhak
And windows authentication set to true in IIS?
Yes.