473,383 Members | 1,815 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

webform as jpeg

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.
Nov 20 '05 #1
7 1249
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
Nov 20 '05 #2
Cor
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

Nov 20 '05 #3
Hello,

"jasio" <sm*******@alphapluscomputers.com> schrieb:
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/microsof...amework.aspnet

Web interface:

http://msdn.microsoft.com/newsgroups...amework.aspnet

HTH,
Herfried K. Wagner
--
MVP · VB Classic, VB .NET
http://www.mvps.org/dotnet
Nov 20 '05 #4
Hello,

"Cor" <no*@non.com> schrieb:
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">


ROFL

Regards,
Herfried K. Wagner
--
MVP · VB Classic, VB .NET
http://www.mvps.org/dotnet
Nov 20 '05 #5
Cor
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
Nov 20 '05 #6
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?
Nov 20 '05 #7
Cor
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
Nov 20 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Ming | last post by:
Hi All, I want to write a PHP webpage which allows people to upload images (no matter what formats) to me and at the same time converts any non-jpeg image to JPEG. Here's what I have: ...
3
by: Steve Holden | last post by:
If nobody has a quick answer I'll go to the PIL list, but I'm having problems with PIL JPEG support on Windows, and figured someone on c.l.py might have solved this problem. I built the Cygwin...
16
by: David Lauberts | last post by:
Hi Wonder if someone has some words of wisdom. I have a access 2002 form that contains 2 graph objects that overlay each other and would like to export them as a JPEG to use in a presentation....
0
by: Suresh | last post by:
Here's an article that shows what you are trying to do. http://www.dotnetbips.com/displayarticle.aspx?id=101 >-----Original Message----- >Does anyone have an example of using ADO.NET (C# -...
11
by: Detlef Hüttenbach | last post by:
Whereas loading tiffs and pngs from file into an Image WebControl work, the images aren't shown when loaded from streams: In a WebForm, the image's property "ImageUrl" is set to a handler, and...
10
by: rtilley | last post by:
Hope it's not inappropriate to post this here. Could someone critique my code? I have no Python programmers in my office to show this to. The script works OK, but should I do it differently? I...
2
by: NN | last post by:
Hello, I have a problem :) I have a webform in which I have the event Onload that refers to a script that find in a database for an image and then show it in the WebForm. The problem is that I...
0
by: Jack Wu | last post by:
Hi I've spent a good majority of my day trying to figure out how to have PIL 1.1.5 working on my OSX 10.3.9_PPC machine. I'm still stuck and I have not gotten anywhere. Could somebody please...
1
by: Smokey Grindel | last post by:
I have a bitmap object I want to return as a JPEG image with a compression set at 90% and progressive passes enabled, how can I do this in .NET 2.0? Progressive passes are not necessary but the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.