webform as jpeg

  • Thread starter Thread starter jasio
  • Start date Start date
J

jasio

Does anyone know how to make a webform mimic a jpeg file?
The purpose of such an action would be to present images
retrieved from an sql database. So far, I've tried to
clear the response object, then write the jpeg to it, and
finally end it, but neither an image button nor ie will
accept it as an image. I will appreciate any help.
 
Hi Jasio,

I'm a bit confused by your question.

A jpeg is an image. A WebForm is a place where you can put tons of
stuff, including images. What stops you having a single <img> on your
WebForm?

Yours, puzzled,
Fergus
 
Jasio,

I try to help you and take a pragmatic approach.

If you have a webpage with a jpg on it there must be something in the HTML
form like <IMG
src="http://www.mvps.org/dotnet/meta/aboutme/images/hirfdoll.png">

The src is also your source for your imageUrl property from the image button
in your VB.Net webform.

But know what you do, by doing this you are sending 16 full pictures over
the web, normally that cost lots of time. (But when they push the button,
they have the image immediately).
I would first translate the images to thumbnails.
At the moment I make those on a stupid way (removing bits from the map just
in a way like "do for bitmap length when the index = x/y copy") maybe
someone active here would give us a better "easy" solution.

Cor
 
Hello,

jasio said:
Does anyone know how to make a webform mimic a jpeg file?
The purpose of such an action would be to present images
retrieved from an sql database. So far, I've tried to
clear the response object, then write the jpeg to it, and
finally end it, but neither an image button nor ie will
accept it as an image. I will appreciate any help.

This is a VB .NET language ng. Please turn to the ng for ASP .NET
questions:

news://msnews.microsoft.com/microsoft.public.dotnet.framework.aspnet

Web interface:

http://msdn.microsoft.com/newsgroup...roup=microsoft.public.dotnet.framework.aspnet

HTH,
Herfried K. Wagner
 
Jasio,
Don't ask this question in the asp.net group, there you would probably get
the answer to make an addition to your ASPX page like,
<asp:ImageButton id=ImageButton1 style="Z-INDEX: 103; runat="server"
ImageUrl="http://www.mvps.org/dotnet/meta/aboutme/images/hirfdoll.png"></asp
:ImageButton>

You can better do this direct in your VB IDE by:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Me.ImageButton1 =
"http://www.mvps.org/dotnet/meta/aboutme/images/hirfdoll.png"
End Sub
Cor
 
My problem is that the images are not in separate files,
but in a database. Is there any way to display the image
on the webform without referencing an actual file?
 
Jasio,
Did you try what I said?
I cann't believe what you said about an image in a database. I think there
is a reference in your database.
But if it was so, on the <html> webpage you create to read in your button,
there must be a <img> tag.
It is impossible to show a picture direct on a client by the reference too a
picture in a server database.
Cor
 
Back
Top