473,695 Members | 1,781 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Example aspjpeg in vbscipt in asp.net

Hello,

I'm using already a long time aspjpeg in asp to add my logo and some
text over my images on my website.

Since a couple of months I changed over to asp.net in vbscript. But I
don't find the way to write the code to be able to use aspjpeg with
vbscript in asp.net Who can give me some complete code examples to do
this?

I'm looking especially for the translation of "manythumbs " &
"sendbinary " in vb.net

I'm looking forward to read your answers here !

Many thanks,
Tony.
Nov 19 '05 #1
3 1759
What do these libraries do for you? Perhaps there's a better way in ASP.NET
without replying upon those older COM components.

-Brock
DevelopMentor
http://staff.develop.com/ballen
Hello,

I'm using already a long time aspjpeg in asp to add my logo and some
text over my images on my website.

Since a couple of months I changed over to asp.net in vbscript. But I
don't find the way to write the code to be able to use aspjpeg with
vbscript in asp.net Who can give me some complete code examples to do
this?

I'm looking especially for the translation of "manythumbs " &
"sendbinary " in vb.net

I'm looking forward to read your answers here !

Many thanks,
Tony.


Nov 19 '05 #2
Tony,

Here's a small sample of using the ASPJPEG component in .NET

'' Upload Image
Dim largejpeg As New ASPJPEGLib.ASPJ peg
Dim smalljpeg As New ASPJPEGLib.ASPJ peg

Dim a, b, x, aa, bb, y As Integer
Dim orig As String = Server.MapPath( "images/" & imagename)
Dim localpath As String =
ConfigurationSe ttings.AppSetti ngs("localpath" )
Dim small As String = localpath & "images\Frogger SM.jpg"
Dim large As String = localpath & "images\Frogger LG.jpg"
largejpeg.Open( orig)

I hope this helps. If not post your asp code up here and I can help
convert it.

Also you might take a look at the GDI+ library in .NET. You can
probably replace everything you were doing with ASPJPEG with it.

I hope this helps

Mike Douglas

www.doitconsultants.com

On 30 Mar 2005 16:55:26 -0800, sp***@pandora.b e (Tony) wrote:
Hello,

I'm using already a long time aspjpeg in asp to add my logo and some
text over my images on my website.

Since a couple of months I changed over to asp.net in vbscript. But I
don't find the way to write the code to be able to use aspjpeg with
vbscript in asp.net Who can give me some complete code examples to do
this?

I'm looking especially for the translation of "manythumbs " &
"sendbinary " in vb.net

I'm looking forward to read your answers here !

Many thanks,
Tony.


Nov 19 '05 #3
First of all thanks for the help, but I have still not found a working
solution. As explained, I have a good working version in ASP. The code
is included below.

With this code I create a red bar on the bottom of the image, in which
I give some comment on the image and the URL of the website. In the
code image.asp I define teh file name of the image (img), the comment
(txt) and the url (url). In the later stage, this info is created
dynamically depending on the requested image. The code of sendbinary
creates on the fly a new image, based on the 3 parameters.

I want to have this code now in vb.net to use it in my new asp.net web
application. Calling the current sendbinary.asp from an asp.net page
doesn't work.

Can someone please help me to rewrite this code?

Many thanks in advance!
Tony.

--- Code of image.asp ---

<HTML>
<HEAD>
<TITLE>AspJpe g - Image with comment in red bar</TITLE>
</HEAD>
<BODY>
<CENTER>

<%
img = Server.URLEncod e(Server.MapPat h("img014.jpg") )
txt = Server.URLEncod e("014 Comment on bottom of image")
url = Server.URLEncod e("www.domain.c om")
%>
<IMG SRC="sendbinary .asp?img=<%=img %>&text=<%=txt% >&url=<%=url%>" ><BR>

</CENTER>
</BODY>
</HTML>

--- End of code test.asp ---

--- Code of sendbinary.asp ---

<%
Set Jpeg = Server.CreateOb ject("Persits.J peg")
Jpeg.Open(Reque st("img"))

Set OK = Server.CreateOb ject("Persits.J peg")
OK.Open(Server. MapPath("empty. jpg"))

OK.Width = Jpeg.Width
OK.Height = Jpeg.Height + 21
OK.DrawImage 0, 0, Jpeg

OK.Canvas.Font. Color = &HFFFFFF 'white
OK.Canvas.Font. Family = "Arial"
OK.Canvas.Font. Size = 16
OK.Canvas.Print 10, Jpeg.Height+2, Request("text")
OK.Canvas.Print Jpeg.Width-134, Jpeg.Height+2, Request("url")

OK.Quality = 95

OK.SendBinary
%>

--- End of code sendbinary.asp ---
Nov 19 '05 #4

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

Similar topics

7
9285
by: Michael Foord | last post by:
#!/usr/bin/python -u # 15-09-04 # v1.0.0 # auth_example.py # A simple script manually demonstrating basic authentication. # Copyright Michael Foord # Free to use, modify and relicense. # No warranty express or implied for the accuracy, fitness to purpose
0
2825
by: Christopher Brandsdal | last post by:
Hello! I am making a upload script for my images. I want the script to resize the images automaticly. The server supports AspJpeg but i don't have AspUpload. Can anyone help me to implement the AspJpeg code into my upload code? AspJpeg CODE. '---------------------------------------------------------------------------
5
4734
by: relaxedrob | last post by:
Hi All! I ran the following w3c example through my WSDL parser (SOA Editor from Cape Clear): http://www.w3.org/TR/wsdl#_rpcexample It told me that there were a bunch of erros about no timeInstant or float defined in the xsd namespace: "http://www.w3.org/2000/10/XMLSchema".
1
2238
by: audiopro | last post by:
I am having some trouble here, and my brain is running on empty. I am not an expert ASP coder, so forgive me for what is probably sloppy code, and not the best... At any rate, I have created the following code to randomly select an image under a random set of folders from my gallery. Once that is done, I call sendbinary.asp which should size and display the image... Here is my code. Problem is, I am getting a good ole red X. It looks...
11
2649
by: ajikoe | last post by:
Hello, I used Visual C# Standard Edition. I want to comment my program using xml commentary method, I don't know why if I use value and example tag, it is not working / showed in the html result. for example I have Property ///<value>this is in description</value> ///<example>this is in Example</example> public int A{
0
1114
by: Tony | last post by:
Hello I have a working code for asp that I want to use now in asp.net. The code is included below. With this code I create a red bar on the bottom of an image, in which I give some comment on the image and the URL of the website. In the code image.asp I define the file name of the image (img), the comment (txt) and the url (url). In the later stage in the project, this info will be created dynamically depending on the requested image....
2
1802
by: Tony | last post by:
Hello I have a working code for asp that I want to use now in asp.net. The code is included below. With this code I create a red bar on the bottom of an image, in which I give some comment on the image and the URL of the website. In the code image.asp I define the file name of the image (img), the comment (txt) and the url (url). In the later stage in the project, this info will be created dynamically depending on the requested image....
6
2324
by: cj | last post by:
Lets just take this example I'm looking at now. I'm looking at the help screen titled .NET Framework Class Library FolderBrowserDialog Class . It gives an example at the bottom that begins with: ' The following example displays an application that provides the ability to ' open rich text files (rtf) into the RichTextBox. The example demonstrates ' using the FolderBrowserDialog to set the default directory for opening files. ' The...
0
2829
by: dann2 | last post by:
hello, i try to upload in an access db two pictures at the same time. i use the adjusted sample code from persits. it looks like this: ... '<% ' Create an instance of AspUpload object 'Set Upload = Server.CreateObject("Persits.Upload") ' Capture uploaded file. Save returns the number of files uploaded 'Count = Upload.Save(Path) 'If Count = 0 Then 'Response.Write "message"
0
8565
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9113
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8839
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8822
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6488
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5837
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2997
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2269
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1971
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.