[RESOLVED] Convert PDF to byte - what imports needed?
Never having converted an existing PDF to byte before I used some free source code. My problem is that "InputStream" isn't recognized. The MSDN Library seems to classify it under the import System.Web but I have already imported this (http://msdn.microsoft.com/de-de/libr...putstream.aspx)! I think there might also be a prob with "new File()". Here is my code:
Well...there doesn't seem to be a class called 'InputStream' in the framework. That link you shows that the 'HttpRequest' object has an 'InputStream' property of type 'Stream'. So you need to 'Stream' instead of 'InputStream'. Secondly what is 'FileInputStream'? I don't recognise that type. Thirdly where did you get the open source code that does that?
Also keep in mind, that "import" (using) a namespace is not enought - you also have to reference the appropriate assembly. In case of common assemblies like System.dll, the referencies are prepared by VS if you create a project, but for 3rd party assemblies or assemblies like System.Messagind.dll or System.Web.dll you have to add them yourself.