Image Data Type

  • Thread starter Thread starter John316
  • Start date Start date
J

John316

I building a form in an .adp that needs to
display an image and also allow the end user
to add an image when generating a new record.

I've been able to use the GetChunk method to
roll through and display the image but how do I
allow the user to add an image when creating
a new record?

thanks in advance,
Bob McClellan
 
In my opinion, you can't do it directly from the ADP page and only the
regular HTML file upload control can be used to upload a file from the
client to the server. This is a security feature of IE.

Of course, you can install a special program on the client's machine or use
an authenticated Java Applet and things like that but those can be used only
for the intranet and the extranet cases; not the ordinary internet.

S. L.
 
Thanks J.
This is awesome. Looks like it will do just what I need.
Can this be used to feed image files to an .asp or .aspx page as well?

thanks in advance,
Bob McClellan.
 
Yes. What I do in our situation is to stream it back into a temporary file
and open that file. Then when done, I delete the file.

In ASP.NET, you probably don't need to save it as a temp file, you can just
create an ASPX page that outputs the file as its Response.OutputStream. I
use something like this in a custom graphics generator on a couple of my
sites. You need to create an aspx page that creates an OutputStream and
refer to this page from you main page.

HTH,
Jim
 
Thanks J.
That sounds like exactly what I need.
I am slowly working my way up the curve on this.
I've never used streaming. The example from the
site you referenced was perfect and easy to follow.
(for the .adp)
Is there anything similiar you can point me towards
to try and work with an .aspx file like what you mentioned.

Thanks in advance,
Bob McClellan
 
J.
I tried the page but could not get it to work.
it kept returning the error.gif
and ... "location not found"
I put the file in the Inetput\wwwroot directory and used "\" for the path
but
I could not get it to work.

Thanks much for the reply though. I will continue working on it... I just
wanted
to make sure that I replied to your last post ...

thanks again,
Bob McClellan.
 
There is one line in there that probably needs to be changed for you. On
about line 13ish there is a path defined. You need to change the
"Productimgs\" to your own images directory. (i.e. "Images\")

Jim
 
Back
Top