murarinayak / alivepdf

Automatically exported from code.google.com/p/alivepdf
0 stars 0 forks source link

Byte Array added to Query String rather than post variables #169

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. The included Flash Demo with v0.1.4.9
2. The included create.cs
3. IIS7 Web Server

What is the expected output? What do you see instead?
When I execute the sample after changing the url to point at the URL that
is on my server (http://localhost/create.aspx), the sample application adds
the binary content of the pdf file to the query string causing IIS to
return a 404 page not found error.

What version of the product are you using? On what operating system?
v0.1.4.9

Please provide any additional information below.
I am attaching the server side files (based on direct copies from the
included cs files), the modified fla sample file with the modified URL.  I
have tried to debug this and dig into what is causing the error without
much luck.  If I comment out the myRequest.data = buffer; line from the
save function in PDF, the page loads correctly but has no data since the
byte array wasn't included.

Original issue reported on code.google.com by raj...@gmail.com on 9 Nov 2009 at 11:40

Attachments:

GoogleCodeExporter commented 8 years ago
I just ran the compiled swf that comes in the zip file download for Flash CS3 
Example and it does the same thing going to your demo url.  The URL that was 
attempted was:

http://alivepdf.bytearray.org/wp-content/demos/create.php?
name=output.pdf&method=generated.pdf?%PDF-1.41%200%20obj<</Type%20/Pages/Kids%20
[3%
200%20R5%200%20R]/Count%202>>endobj3%200%20obj<</Type%20/Page/Parent%201%200%
20R/MediaBox%20[0%200%20841.89%20595.28]/Resources%202%200%20R/Rotate%200/Dur%
203/Contents%204%200%20R>>endobj4%200%20obj<</Filter%20/FlateDecode%20/Length%
20137>>streamxÚUŽ1AE{NñO€ÌŒÌÂ61±qKc5&ÆÂÊÂë;+3…
¡€ü'ÖŸž*¤Çe¥ÃºoÊleŸàºÞúìNgJ©pqh1VÇ“«³ÌXêÊ�
�z«Oh”•‹M”ß^ˆ¢ÃFA²ì[!
9Zbóa7 Qœ8¿ÙÿÑRö-Œendstreamendobj5%200%20obj<</Type%20/Page/Paren
t%201%200%
20R/MediaBox%20[0%200%20841.89%20595.28]/Resources%202%200%20R/Rotate%200/Dur%
203/Contents%206%200%20R>>endobj6%200%20obj<</Filter%20/FlateDecode%20/Length%
20253>>streamxÚ]ÐËNÃ0…á}Ÿâ,AŠ;7'[$X%20–á¬Äm]9±åKy}LPa;ò÷k
<%ÞN%
u>OÏž^9xIŒa8ãeØGí﨡¾Öç'Þ£i‰ćwëÕíBš1Yc=‚Ž�
�³ŠÅ#†Û·çT‰æèËŽ8_ýh— Æ¨bRrÒN‡Q/
(£án‘ª$Qý«°†êz­8²WÎÙÜ­IÑÉsFMqÝå`»â«Z&¯|^;çÑz§
|—|{AP+êc¡eĺµòîêªÇd$dº¤¼‰
7ËŽ¬Tÿü}[A:­LIc±òñR Ÿ¾

And the result was "An error occured."

In every other way this tool is fantastic and I would really love to use it in 
our 
solution, but I have to solve this problem.

Thanks,

Chris

Original comment by raj...@gmail.com on 10 Nov 2009 at 3:52

Attachments:

GoogleCodeExporter commented 8 years ago
I found the issue...

When running within the debug player or local player, the navigateToURL request 
is 
being formed incorrectly (I would assume related to the browser being created 
through the operating system to handle the request).  As long as the files are 
running within a browser (and within a valid or allowed security context), the 
file 
loads as expected.

This is going to be a great addition to our solution.

Thanks,

Chris

Original comment by raj...@gmail.com on 10 Nov 2009 at 4:10

GoogleCodeExporter commented 8 years ago
Hi,

I am trying to use the create.aspx version and it is not working.  I took the 
code 
your attached and implemented them on my server.  I did have to delete the 
Inherits="..." part as it was pointing to some file that did not exist.  
Anyway, 
when i fire off _pdf.save(...) from my Flex app, it opens a blank browser 
window 
with this address:

http://petelaptop/AlivePDF/create.aspx?name=MyPDF.pdf&method=attachment

And nothing happens... Any help would be greatly appreciated!!

Thanks,
Pete

Original comment by pmcalen...@gmail.com on 1 Mar 2010 at 3:45