CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeCharge.Discussion

 Picture from Db using Perl

Print topic Send  topic

Author Message
Michael Rachow
Posted: 03/21/2002, 8:48 AM

I got the trick using as image source a script.
But using Perl I do not know what stuff I have to "print"
from that called script.
Using ASP I have

Response.Expires = 0
Response.Buffer = TRUE
Response.Clear

Response.ContentType = "image/jpeg"

pAzuId = GetParam("AZU_ID")
Dim rs : Set rs = cn.Execute("SELECT pic FROM AzuPic WHERE AZU_ID=" &
ToSql(pAzuId, "Number"))

Response.BinaryWrite rs("pic")
Response.End

So what is
Response.Expires = 0
Response.Buffer = TRUE
Response.Clear

Response.ContentType = "image/jpeg"
Response.End

producing?

Thnaks
Michael


Alexey Alexapolsky
Posted: 03/25/2002, 5:09 AM

Main purpose of this code is to set ContentType in http header,
you should use perl specific ways to set http header variables.
response.end just finishes this script.


--
Alex
CodeCharge Developer


"Michael Rachow" <mrachow@BeraCom.de> wrote in message
news:a7d2tm$84s$1@news.codecharge.com...
> I got the trick using as image source a script.
> But using Perl I do not know what stuff I have to "print"
> from that called script.
> Using ASP I have
>
> Response.Expires = 0
> Response.Buffer = TRUE
> Response.Clear
>
> Response.ContentType = "image/jpeg"
>
> pAzuId = GetParam("AZU_ID")
> Dim rs : Set rs = cn.Execute("SELECT pic FROM AzuPic WHERE AZU_ID=" &
> ToSql(pAzuId, "Number"))
>
> Response.BinaryWrite rs("pic")
> Response.End
>
> So what is
> Response.Expires = 0
> Response.Buffer = TRUE
> Response.Clear
>
> Response.ContentType = "image/jpeg"
> Response.End
>
> producing?
>
> Thnaks
> Michael
>
>
>


   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.