title: How to save uploaded images with ng-flow VB.NET
body: <p>Hey guys i'm having some problems with how to upload and save images using angularjs and flowjs.</p>
  
  <p>I'm new to angularjs and had my problems trying to make an image upload but i got it working with ng-flow, still i'm having some problems trying to save the image to some designed path.</p>
  
  <p>One exemple and similar problem is this one <a href="https://stackoverflow.com/questions/23811678/how-and-where-save-uploaded-files-with-ng-flow">How and where save uploaded files with ng-flow?</a> ,  but i still couldn't made it work.</p>
  
  <p>Here's the code for the upload and preview, working fine so far so good:</p>
  
  <pre><code>&lt;div class="ng-scope add-file" flow-init="{target:'../WebService/WebService.asmx/setImage'}"
   flow-name="image.flow" flow-files-submitted="$flow.upload()"
   flow-file-added="!!{png:1,gif:1,jpg:1,jpeg:1}[$file.getExtension()]"&gt;
  &lt;div class="row" style="margin-top: 0px!important;"&gt;
      &lt;div class="col-sm-10"&gt;
          &lt;p&gt;&lt;label for="image"&gt;ADD PHOTO&lt;/label&gt;&lt;/p&gt;
          &lt;table style="border: 0px;"&gt;
              &lt;tr&gt;
                  &lt;td ng-repeat="file in $flow.files" class="ng-scope thumbnail" style="margin: 3px 3px 3px 3px;"&gt;
                      &lt;div class="text-right"&gt;
                          &lt;a class="glyphicon glyphicon-remove" ng-click="file.cancel()"
                             style="color:#ff4b4b; text-decoration: none!important;"&gt;&lt;/a&gt;
                      &lt;/div&gt;
                      &lt;div class="frame" ng-show="$flow.files.length" style="min-width: 210px!important;"&gt;
                          &lt;span class="helper"&gt;&lt;/span&gt;
                          &lt;img flow-img="file" src="" class="image-thumbnail"&gt;
                      &lt;/div&gt;
                      &lt;div class="progress progress-striped" ng-class="{active: file.isUploading()}"&gt;
                          &lt;div class="progress-bar" role="progressbar" aria-valuenow="100" aria-valuemin="0"
                               aria-valuemax="100" ng-style="{width: (file.progress() * 100) + '%'}"&gt;
                          &lt;/div&gt;
                          &lt;span class="sr-only ng-binding"&gt;1% Complete&lt;/span&gt;
                      &lt;/div&gt;
                  &lt;/td&gt;
              &lt;/tr&gt;
          &lt;/table&gt;
      &lt;/div&gt;
      &lt;div class="col-sm-2 text-right drop" flow-drop="" ng-class="dropClass"&gt;
          &lt;span class="file-upload btn btn-primary" flow-btn=""&gt;
              Choose file
              &lt;input type="file" multiple="multiple" style="visibility: hidden; position: absolute;"&gt;
          &lt;/span&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p></p>
  
  <p>But here's the problem, i don't know how or what to do to create this image in some path...</p>
  
  <p>I'm passing to ng-flow-init my webservice method as it will send via url parameters like this:</p>
  
  <pre><code>flow-init="{target:'../WebService/WebService.asmx/setImage'}"
  </code></pre>
  
  <p>and the ws receive it like the following example:</p>
  
  <pre><code>../setImage?flowChunkNumber=1&amp;flowChunkSize=1048576&amp;flowCurrentChunkSize=198637&amp;flowTotalSize=198637&amp;flowIdentifier=198637-1jpg&amp;flowFilename=1.jpg&amp;flowRelativePath=1.jpg&amp;flowTotalChunks=1
  
      'flowChunkNumber=1
      'flowChunkSize=1048576
      'flowCurrentChunkSize=111168
      'flowTotalSize = 111168
      'flowIdentifier=111168-Figura1png
      'flowFilename=Figura1.png
      'flowRelativePath=Figura1.png
      'flowTotalChunks = 1
  </code></pre>
  
  <p>What should i do with these informations or what do i need to send the data (binary, base64, etc) and save/create the image on my server?</p>
  
  <p><strong>Edit 1:</strong> I already know that i need the file data and figured that i do need an <strong>upload.php</strong> to transform and send the file.
  Still can't even think about how to create an upload.php for vb.net</p>