Ask a Question related to ASP.NET General, Design and Development.
-
displaying pdf from memory....
I have a pdf that is contained in a byte[] array in memory and I want to
display this in a browser window.
The window will beopenned when a button is clicked on the current web page,
i.e. a second browser window is displayed, preferably with no menu or tool
bars....
Cheers
Jim
Guest
-
#39438 [NEW]: Memory leak PHP Fatal error: Out of memory
From: nikolas dot hagelstein at gmail dot com Operating system: NETBSD 3.0.1 AMD64 PHP version: 5.2.0 PHP Bug Type: ... -
Flash Player 8 huge memory using during drag (all memory gone in few minutes) !!!
Hi, my name is Ladislav Sopko and I am the project manager for our mapping solution MapWorld. MapWorld is a dynamic flash based cartographic... -
Memory consumption of Ruby/mod_ruby combo on Apache [memory leak]
> I don't think so - I think all the modules are loaded when Apache is It didn't have anything to do with IfModules or even Apache. I had a... -
AspNet Process Memory Issue on Win2k Server - Peformance is fine - Memory usuage doesn't stop growing
We are running our company website on a win2k server running .NET framework 1.0 and IIS 5. The pages consist of mostly static content built from a... -
perl memory management - does @array = () free the memory?
I have a sizable array that I want to clear (i.e. free the memory for other use). Will @array = () alert a garbage collector in Perl to mark the... -
Rob Tillie #2
Re: displaying pdf from memory....
You could write it to a temp file and then execute it, it will then
automatically be opened with the default application for that file extension
(e.g. acrobat).
Greetz,
-- Rob.
ooo wrote:> I have a pdf that is contained in a byte[] array in memory and I want
> to display this in a browser window.
> The window will beopenned when a button is clicked on the current web
> page, i.e. a second browser window is displayed, preferably with no
> menu or tool bars....
>
>
> Cheers
>
> Jim
Rob Tillie Guest
-
dsandor #3
Re: displaying pdf from memory....
Try this on the page that loads in the new browser.
Response.ContentType = "application/pdf"
Response.BinaryWrite( yourPDFByteArray )
Response.End
(Make sure that you remove ALL the HTML tags from the ASPX page or they will
get appended to the end of the file, corrupting it.)
David Sandor
<ooo> wrote in message news:e2u2R4CXDHA.1492@TK2MSFTNGP12.phx.gbl...page,> I have a pdf that is contained in a byte[] array in memory and I want to
> display this in a browser window.
> The window will beopenned when a button is clicked on the current web> i.e. a second browser window is displayed, preferably with no menu or tool
> bars....
>
>
> Cheers
>
> Jim
>
>
dsandor Guest
-
Rob Tillie #4
Re: displaying pdf from memory....
Didn't notice at first that it was a web app :S.
What DSandor is saying is right.
Moreover, for opening it in a popup, you'll have to use javascript I guess.
The simplest way I think is to open a popup window ( you can give params
here to not display the toolbar etc.), and then reassign the target from the
form that's going to be submitted to the popup window.
Greetz,
-- Rob.
Rob Tillie wrote:> You could write it to a temp file and then execute it, it will then
> automatically be opened with the default application for that file
> extension (e.g. acrobat).
>
> Greetz,
> -- Rob.
>
> ooo wrote:>> I have a pdf that is contained in a byte[] array in memory and I want
>> to display this in a browser window.
>> The window will beopenned when a button is clicked on the current web
>> page, i.e. a second browser window is displayed, preferably with no
>> menu or tool bars....
>>
>>
>> Cheers
>>
>> Jim
Rob Tillie Guest



Reply With Quote

