Thought I should throw the quick and easy code in there, so here you go:
protected void Page_Load(object sender, EventArgs e)
{
byte[] rawPDF = new byte[Request.InputStream.Length];
string path = @"C:/testPDF.pdf";
FileStream textFilestream = new...
I was able to find this object: Request.InputStream.
Thanks for your help guys!
The trouble with programmers is that they get high on their own supply. -Dimandja
Once I get a reference to it I should be fine, I have been working with reading and writing these PDFs as BinaryStreams from files and databases(cool stuff, I might add).
So now I just need to know how to reference the byte array being sent to the page.
The trouble with programmers is that...
You had to ask.... :)
We have dynamic PDFs being rendered in a page. The user will enter/change data in the PDF fields. When the user clicks the 'Submit' button on the PDF page itself, the PDF is sending itself as a byte array to the specified page.
And that is where I stand - trying to...
Hi All,
I am trying to retrieve the bytes sent to a page (probably use a BinaryReader). What is the easiest way to do this? I'm assuming there is some property in the Page object in which I can read from - but I don't know where to find it. I am using VS2005 .NET 2.0 C#.
Thanks!
Slo-No...
I would think that the default setting for .txt in IIS would be notepad.
I went ahead and added it anyway, but to no avail.
Thanks for the suggestion though.
Slo-No
The trouble with programmers is that they get high on their own supply. -Dimandja
Hi all.
For a C# webapp, I'm having a hard time streaming a text file. Heres my code:
DateTime fileDate = (DateTime) Session["ExportFileDate"];
Response.Clear();
Response.Buffer= true;
Response.ContentType = "text/plain";
Response.Charset = "";
this.EnableViewState =...
Hi All,
Can anyone tell me how to redirect to a page that is in a directory above the current directory?
For example:
Currently at /pages/thisfolder/thatfile.aspx
want to redirect to /pages/thisfile.aspx
Thanks!
Slo-No
The trouble with programmers is that they get high on their own...
Thanks obislavu,
It works great. I did have to some tweaking.
the field contains items like "Nike Brands" as well as "Nike Brands Contact" and can combine them like "Nike Brands Contact, Nike Brands".
So if I looked for "Nike Brands", it would return everything with "Nike Brands" as well as...
Hi all,
I am displaying a report using a DataGrid. I am using a RowFilter to get only the records I need to display.
One of the fields, contains 3 different string values. I need to display that record based on if ANY of those values are equal to what the user selected from a dropdown...
Thanks for the help.
Turns out if I sent an RSET command before the MAIL command it works...
But the server returns that it does not know what RSET is.
I hate computers.
The trouble with programmers is that they get high on their own supply. -Dimandja
Hi all,
I am writing a simple mail program with C++.
Here is ths code:
//MAIL command to server
write(sock, "MAIL FROM:", 10);
write(sock, this->sender.c_str(), sizeof(this->sender.c_str()));
write(sock, "\n", 1);
And here is the error I get when I run it:
To Server: MAIL...
Thanks for the tips everyone!
I'm going to throw the AT END statement in there and see if that takes care of it. Sorry to cause such a commotion!
Slo-No
The trouble with programmers is that they get high on their own supply. -Dimandja
Thanks for the quick reply Frederico,
I'm pretty new to COBOL and have never used a SEARCH table command. Does the AT END command go where NEXT SENTENCE is?
Thanks again,
Slo-No
The trouble with programmers is that they get high on their own supply. -Dimandja
here is the code
845500 SET MFWR-INDX TO 1.
845550 SEARCH MFWR-WHSE-COUNTRY-TBL
845600 WHEN (WHSE-WHS = MFWR-CNTRY-WHS (MFWR-INDX))
845650 AND (WHSE-BAY = MFWR-CNTRY-BAY (MFWR-INDX))
845700 AND (WHSE-ROW =...
Hey All,
When you do a search table, what is returned if the record you are looking for is not found?
Slo-No
The trouble with programmers is that they get high on their own supply. -Dimandja
Jeff,
I agree, this is a good book regardless of what you're into. But the Vatican worrying about this publication? I don't think so.
The book is a lot of propaganda surrounding a little bit of truth... I think the Catholic church has more important things to worry about, like priests and...
In your UNION all statement, label each table like this:
select field1, field2, field3, 'Table 1'
from table1
UNION ALL
select field 1, field2, field3, 'Table 2'
from table2
This will allow you to differentiate which table each record came from.... then you can do your count based upon that.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.