Hi,
I am implementing a COM component using .net for a few outdated components for a server migration task.
The old component was used to receive an image path on the current server, convert it to a jpeg and save the converted image in the same path.
This is trivial to do in .net, however my main problem is obtaining the server context. I am not sure how to do either one of the following: 1. saving the image to the same path that the original image was retrieved from 2. or sending the image directly to the response stream (avoiding the need to save the converted image)
The component is being called within a class ASP page (yes, unfortunately!) using: Server.CreateObject("Component.Class")
Is there anyway in the implementing .net code that i can obtain a reference to the "server" object that created the component? I was hoping that if I could obtain a reference to the server, I could then obtain the appropriate context to write back to the response stream.
Any help would be greatly appreciated.
I am implementing a COM component using .net for a few outdated components for a server migration task.
The old component was used to receive an image path on the current server, convert it to a jpeg and save the converted image in the same path.
This is trivial to do in .net, however my main problem is obtaining the server context. I am not sure how to do either one of the following: 1. saving the image to the same path that the original image was retrieved from 2. or sending the image directly to the response stream (avoiding the need to save the converted image)
The component is being called within a class ASP page (yes, unfortunately!) using: Server.CreateObject("Component.Class")
Is there anyway in the implementing .net code that i can obtain a reference to the "server" object that created the component? I was hoping that if I could obtain a reference to the server, I could then obtain the appropriate context to write back to the response stream.
Any help would be greatly appreciated.