![]() |
|
|||||
|
HTML for the form | |||||
The HTML for your form should appear something like the following. Note that we are using a multipart encoding, something which is required if you are using the input file-type form element. [HTML] |
||||||
|
Decoding the Data | |||||
Your upload.aspx page should contain code to decode the uploaded file and save it out in a web friendly format. First we find the physical path to the place we are going to save the file. [C#] [Visual Basic] Next we get the uploaded information out of the request. Here we use the standard .NET upload classes but for more control over the upload process you can use ABCUpload. [C#] [Visual Basic] |
||||||
|
Drawing the Data | |||||
Finally we create a Canvas, draw the binary data onto it and save the result out in the location we identified earlier. [C#] [Visual Basic] |